Improve the PCM playback worklet with robust resampling and buffer management. Refactor the voice-stream service for better session teardown and error handling. Fix authentication issues by enabling credentials in HttpService and using relative URLs. Add Jalali date support and an AI model configuration tab in settings. Enhance diagnostics for voice transport and the audio engine.
211 lines
5.4 KiB
CSS
211 lines
5.4 KiB
CSS
@import "tailwindcss";
|
|
@import "@angular/cdk/overlay-prebuilt.css";
|
|
|
|
@theme {
|
|
--font-sans: "Lahze", "Vazir", sans-serif;
|
|
--color-primary: #3b82f6;
|
|
--color-secondary: #64748b;
|
|
--color-success: #22c55e;
|
|
--color-warning: #f59e0b;
|
|
--color-danger: #ef4444;
|
|
--color-info: #06b6d4;
|
|
--color-card-bg: #ffffff;
|
|
--color-card-border: #e2e8f0;
|
|
--color-text-primary: #1D3557;
|
|
--color-text-secondary: #374151;
|
|
--color-text-muted: #64748b;
|
|
--color-input-bg: #ffffff;
|
|
--color-input-border: #d1d5db;
|
|
--color-dropzone-bg: #f8fafc;
|
|
--color-dropzone-border: #e2e8f0;
|
|
}
|
|
|
|
:root {
|
|
color-scheme: light;
|
|
--app-bg: #f8fafc;
|
|
--app-text: #122033;
|
|
--sidebar-bg: #f8fafc;
|
|
--sidebar-text: #122033;
|
|
--sidebar-muted: #64748b;
|
|
--sidebar-border: #e2e8f0;
|
|
--sidebar-hover: #f1f5f9;
|
|
--surface-bg: #ffffff;
|
|
--surface-border: #e2e8f0;
|
|
--muted: #64748b;
|
|
--overlay: rgba(0, 0, 0, 0.5);
|
|
--menu-toggle-color: #122033;
|
|
--menu-toggle-hover: #f1f5f9;
|
|
--main-content-bg: #f8fafc;
|
|
--toggle-bg: #e5e7eb;
|
|
--toggle-slider: #ffffff;
|
|
--text-primary: var(--color-text-primary);
|
|
--text-secondary: var(--color-text-secondary);
|
|
--text-muted: var(--color-text-muted);
|
|
|
|
/* App scrollbars — light defaults, overridden in the dark theme below */
|
|
--scrollbar-thumb: #cbd5e1;
|
|
--scrollbar-thumb-hover: #94a3b8;
|
|
--scrollbar-track: #f1f5f9;
|
|
|
|
/* Short aliases for the card surface tokens (pages/charts use the short names) */
|
|
--card-bg: var(--surface-bg);
|
|
--card-border: var(--surface-border);
|
|
}
|
|
|
|
[data-bs-theme="dark"] {
|
|
color-scheme: dark;
|
|
--app-bg: #212121;
|
|
--app-text: #ececec;
|
|
--sidebar-bg: #171717;
|
|
--sidebar-text: #ececec;
|
|
--sidebar-muted: #8e8e8e;
|
|
--sidebar-border: #2e2e2e;
|
|
--sidebar-hover: #2e2e2e;
|
|
--surface-bg: #171717;
|
|
--surface-border: #2e2e2e;
|
|
--muted: #8e8e8e;
|
|
--overlay: rgba(0, 0, 0, 0.6);
|
|
--menu-toggle-color: #ececec;
|
|
--menu-toggle-hover: #2e2e2e;
|
|
--main-content-bg: #212121;
|
|
--toggle-bg: #3e3e3e;
|
|
--toggle-slider: #f8fafc;
|
|
|
|
--color-card-bg: #171717;
|
|
--color-card-border: #2e2e2e;
|
|
--color-text-primary: #f8fafc;
|
|
--color-text-secondary: #cbd5e1;
|
|
--color-text-muted: #8e8e8e;
|
|
--color-input-bg: #171717;
|
|
--color-input-border: #3e3e3e;
|
|
--color-dropzone-bg: rgba(23, 23, 23, 0.6);
|
|
--color-dropzone-border: #3e3e3e;
|
|
|
|
/* App scrollbars — dark theme */
|
|
--scrollbar-thumb: #3f3f46;
|
|
--scrollbar-thumb-hover: #52525b;
|
|
--scrollbar-track: #171717;
|
|
|
|
/* Short aliases for the card surface tokens (pages/charts use the short names) */
|
|
--card-bg: var(--surface-bg);
|
|
--card-border: var(--surface-border);
|
|
|
|
--text-primary: var(--color-text-primary);
|
|
--text-secondary: var(--color-text-secondary);
|
|
--text-muted: var(--color-text-muted);
|
|
}
|
|
|
|
* {
|
|
font-family: "Lahze", sans-serif;
|
|
}
|
|
|
|
/* ---------- Scrollbars: themed with the app, dark under [data-bs-theme="dark"] ----------
|
|
Applies to every scroll container (main content, sidebar, panels, textareas).
|
|
Component rules that hide or slim a specific scrollbar still win on specificity. */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
|
}
|
|
|
|
*::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
*::-webkit-scrollbar-track {
|
|
background: var(--scrollbar-track);
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb {
|
|
background-color: var(--scrollbar-thumb);
|
|
border-radius: 9999px;
|
|
border: 2px solid var(--scrollbar-track);
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--scrollbar-thumb-hover);
|
|
}
|
|
|
|
*::-webkit-scrollbar-corner {
|
|
background-color: var(--scrollbar-track);
|
|
}
|
|
|
|
select option,
|
|
select optgroup {
|
|
background-color: var(--color-input-bg);
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
body {
|
|
direction: rtl;
|
|
font-family: "Lahze", sans-serif;
|
|
text-align: right;
|
|
background: var(--app-bg);
|
|
color: var(--app-text);
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-THIN.TTF") format("truetype");
|
|
font-weight: 100;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-EXTRALIGHT.TTF") format("truetype");
|
|
font-weight: 200;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-LIGHT.TTF") format("truetype");
|
|
font-weight: 300;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-REGULAR.TTF") format("truetype");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-MEDIUM.TTF") format("truetype");
|
|
font-weight: 500;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-SEMIBOLD.TTF") format("truetype");
|
|
font-weight: 600;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-BOLD.TTF") format("truetype");
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-EXTRABOLD.TTF") format("truetype");
|
|
font-weight: 800;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Lahze";
|
|
src: url("/assets/images/fonts/LAHZEH-FANUM-BLACK.TTF") format("truetype");
|
|
font-weight: 900;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|