fix: 修复主题模式设置跟随系统不生效的问题

This commit is contained in:
digua
2026-01-12 20:37:05 +08:00
parent fe1a20759d
commit 792a876244
5 changed files with 21 additions and 3 deletions

View File

@@ -56,6 +56,9 @@ const api = {
removeListener: (channel: string, func: (...args: unknown[]) => void) => {
ipcRenderer.removeListener(channel, func)
},
setThemeSource: (mode: 'system' | 'light' | 'dark') => {
ipcRenderer.send('window:setThemeSource', mode)
},
}
// Chat Analysis API