feat: expand secure runtime and workspace UX

This commit is contained in:
lofyer
2026-08-04 00:57:08 +08:00
parent 09e9fbf5e2
commit 2910d315f7
56 changed files with 6164 additions and 882 deletions
+6 -2
View File
@@ -23,7 +23,11 @@ export function resolveWindowIcon(
return undefined
}
const fileName =
environment.platform === 'win32' ? 'icon.ico' : 'icon.png'
environment.platform === 'win32'
? environment.isPackaged
? 'icon.ico'
: 'icon-taskbar.ico'
: 'icon.png'
const joinPath =
environment.platform === 'win32' ? win32.join : posix.join
return environment.isPackaged
@@ -59,9 +63,9 @@ export function createMainWindow(shouldQuit: () => boolean): BrowserWindow {
minWidth: 920,
minHeight: 620,
show: false,
frame: false,
...(usableIcon ? { icon: usableIcon } : {}),
backgroundColor: '#f4f1ea',
titleBarStyle: process.platform === 'darwin' ? 'hiddenInset' : 'default',
webPreferences: {
preload: join(currentDirectory, '../preload/index.cjs'),
contextIsolation: true,