Added custom themes, import/export option with json (#159)

Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/159
This commit is contained in:
blake
2026-06-23 20:19:23 +02:00
committed by ArkHost
parent 84ff75f223
commit 7b3609afbb
9 changed files with 866 additions and 10 deletions
+20
View File
@@ -46,6 +46,25 @@ export interface VaultConfig {
name: string;
}
export interface CustomThemeColors {
bg_primary: string;
bg_secondary: string;
bg_tertiary: string;
bg_hover: string;
bg_active: string;
bg_editor: string;
text_primary: string;
text_secondary: string;
border_color: string;
}
export interface CustomTheme {
id: string;
name: string;
is_dark: boolean;
colors: CustomThemeColors;
}
export interface AppConfig {
vaults: VaultConfig[];
active_vault: string | null;
@@ -103,6 +122,7 @@ export interface AppConfig {
sync_on_change: boolean;
sync_interval_minutes: number;
last_sync_time: string | null;
custom_themes: CustomTheme[];
}
export interface VaultState {