feat: 设置功能

This commit is contained in:
Wxw-Gu committed 2026-07-30 09:49:56 +08:00
1 parent 3c0e5a94cb
commit e1a174ade9
27 files changed
+1430 -17

No files matched your search

+7 -1
View File
@@ -32,6 +32,9 @@ export interface AppSettings {
debugEnabled: boolean
autoLogin: boolean
autoLoginPreferenceSet: boolean
appearanceTheme: 'system' | 'light' | 'dark'
compactMode: boolean
showStartupProgress: boolean
}
function getDefaultDbRoot(): string {
@@ -112,7 +115,10 @@ const DEFAULT_SETTINGS: AppSettings = {
.trim()
.toLowerCase()
),
autoLoginPreferenceSet: false
autoLoginPreferenceSet: false,
appearanceTheme: 'system',
compactMode: false,
showStartupProgress: true
}
const SETTINGS_FILE = path.join(