Add font family select (9 monospace fonts) and font size +/- stepper (8-24px) to SettingsTab global settings. Both controls apply live preview via CSS custom properties (--ui-font-family, --ui-font-size) and persist to SQLite. Restructure global settings from inline rows to 2-column grid with labels above controls. initTheme() now restores saved font settings on startup.
61 lines
1.1 KiB
CSS
61 lines
1.1 KiB
CSS
@import './lib/styles/catppuccin.css';
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-family: var(--ui-font-family);
|
|
font-size: var(--ui-font-size);
|
|
line-height: 1.4;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: var(--sidebar-width) 1fr;
|
|
grid-template-rows: 1fr auto;
|
|
}
|
|
|
|
/* Ultrawide: show right panel */
|
|
@media (min-width: 3440px) {
|
|
#app {
|
|
grid-template-columns: var(--sidebar-width) 1fr var(--right-panel-width);
|
|
}
|
|
}
|
|
|
|
/* Narrow: collapse sidebar to icons */
|
|
@media (max-width: 1200px) {
|
|
#app {
|
|
grid-template-columns: 48px 1fr;
|
|
}
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--ctp-surface2);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--ctp-overlay0);
|
|
}
|