refactor: update theme handling and preference types

- Removed the App_SetTheme IPC channel and related theme management code.
- Updated imports to use preferenceTypes for theme and selection action items.
- Refactored preference service to preload preferences and adjusted related components.
- Cleaned up unused code and comments related to theme management.
- Enhanced the organization of preference-related types and actions for better maintainability.
This commit is contained in:
fullex
2025-09-01 23:49:17 +08:00
parent 0dce1c57fc
commit 0ef3852029
64 changed files with 482 additions and 354 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { dbService } from '@data/db/DbService'
import { loggerService } from '@logger'
import { DefaultPreferences } from '@shared/data/preferences'
import type { PreferenceDefaultScopeType, PreferenceKeyType } from '@shared/data/types'
import type { PreferenceDefaultScopeType, PreferenceKeyType } from '@shared/data/preferenceTypes'
import { IpcChannel } from '@shared/IpcChannel'
import { and, eq } from 'drizzle-orm'
import { BrowserWindow, ipcMain } from 'electron'