feat: add global font settings with per-project override

- Add fontFamilySans and fontFamilyMono to GlobalSettings type
- Add global font state and actions to app store
- Update getEffectiveFontSans/Mono to fall back to global settings
- Add font selectors to global Settings → Appearance
- Add "Use Global Font" checkboxes in Project Settings → Theme
- Add fonts to settings sync and migration
- Include fonts in import/export JSON
This commit is contained in:
Stefan de Vogelaere
2026-01-16 23:54:35 +01:00
parent c747baaee2
commit f3b00d0f78
6 changed files with 287 additions and 77 deletions

View File

@@ -463,6 +463,12 @@ export interface GlobalSettings {
/** Currently selected theme */
theme: ThemeMode;
// Font Configuration
/** Global UI/Sans font family (undefined = use default Geist Sans) */
fontFamilySans?: string;
/** Global Code/Mono font family (undefined = use default Geist Mono) */
fontFamilyMono?: string;
// UI State Preferences
/** Whether sidebar is currently open */
sidebarOpen: boolean;