mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(desktop): smooth Windows title bar overlay
This commit is contained in:
1 parent
0bd4d31dd2
commit
8f785ee0a8
10 files changed
+304
-38
No files matched your search
@@ -33,6 +33,9 @@ export const api = {
|
||||
setThemeSource: (mode: 'system' | 'light' | 'dark') => {
|
||||
ipcRenderer.send('window:setThemeSource', mode)
|
||||
},
|
||||
setTitleBarOverlayColor: (color: string) => {
|
||||
ipcRenderer.send('window:setTitleBarOverlayColor', color)
|
||||
},
|
||||
}
|
||||
|
||||
// 扩展 api,添加 dialog、clipboard 和应用功能
|
||||
|
||||
Vendored
+1
@@ -90,6 +90,7 @@ interface Api {
|
||||
receive: (channel: string, func: (...args: unknown[]) => void) => void
|
||||
removeListener: (channel: string, func: (...args: unknown[]) => void) => void
|
||||
setThemeSource: (mode: 'system' | 'light' | 'dark') => void
|
||||
setTitleBarOverlayColor: (color: string) => void
|
||||
dialog: {
|
||||
showOpenDialog: (options: Electron.OpenDialogOptions) => Promise<Electron.OpenDialogReturnValue>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user