fix: should use fullscreen to control where to place macos window controls (#6351)

This commit is contained in:
pengx17 committed 2024-03-28 03:40:46 +00:00
1 parent 4e7652f108
commit e53744b740
7 files changed
+53 -16

No files matched your search

@@ -20,6 +20,10 @@ export const uiHandlers = {
const window = await getMainWindow();
return window?.isMaximized();
},
isFullScreen: async () => {
const window = await getMainWindow();
return window?.isFullScreen();
},
handleThemeChange: async (_, theme: (typeof nativeTheme)['themeSource']) => {
nativeTheme.themeSource = theme;
},