mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-02 19:21:54 +08:00
fix: 修复主题模式设置跟随系统不生效的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user