fix(ui): hide Electron menu bar and polish editor chrome

Drop the system View menu across windows, show the open project name above Game properties, and keep scene list kebab visible with truncated titles and overflow tooltips.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-08-03 09:21:26 +08:00
parent 41b112159f
commit 61446dacfc
5 changed files with 47 additions and 32 deletions
+1 -5
View File
@@ -208,11 +208,11 @@ function createWindow(kind: WindowKind, opts?: CreateWindowOpts): BrowserWindow
const win = new BrowserWindow({
width: size.width,
height: size.height,
autoHideMenuBar: true,
...(kind === 'sceneDescription'
? {
minWidth: 520,
minHeight: 420,
autoHideMenuBar: true,
}
: {}),
...(kind === 'materials'
@@ -222,7 +222,6 @@ function createWindow(kind: WindowKind, opts?: CreateWindowOpts): BrowserWindow
minWidth: 260,
maxWidth: 360,
minHeight: 480,
autoHideMenuBar: true,
}
: {}),
...(kind === 'npcsEditor'
@@ -231,7 +230,6 @@ function createWindow(kind: WindowKind, opts?: CreateWindowOpts): BrowserWindow
height: NPCS_EDITOR_WINDOW_HEIGHT,
minWidth: 1100,
minHeight: 640,
autoHideMenuBar: true,
}
: {}),
...(kind === 'sceneEditor'
@@ -240,7 +238,6 @@ function createWindow(kind: WindowKind, opts?: CreateWindowOpts): BrowserWindow
height: 800,
minWidth: 960,
minHeight: 600,
autoHideMenuBar: true,
}
: {}),
...(kind === 'npcs'
@@ -250,7 +247,6 @@ function createWindow(kind: WindowKind, opts?: CreateWindowOpts): BrowserWindow
minWidth: 560,
maxWidth: 900,
minHeight: 480,
autoHideMenuBar: true,
}
: {}),
show: false,