desktop: use native-height Windows and Linux controls

This commit is contained in:
amosblomqvist
2026-10-12 09:46:42 +03:00
parent 0540bf697c
commit a395f37727
2 changed files with 8 additions and 5 deletions
+3 -2
View File
@@ -47,10 +47,11 @@ describe("desktop window chrome", () => {
});
for (const platform of ["win32", "linux"]) {
it(`${platform} uses native right-side controls with an Alt-accessible menu`, () => {
it(`${platform} uses native-height right-side controls with an Alt-accessible menu`, () => {
const options = windowOptions(platform);
assert.equal(options.titleBarStyle, "hidden");
assert.deepEqual(options.titleBarOverlay, { color: "#141414", symbolColor: "#e5e5e5", height: 60 });
assert.deepEqual(options.titleBarOverlay, { color: "#141414", symbolColor: "#e5e5e5" });
assert.equal(Object.hasOwn(options.titleBarOverlay, "height"), false, "omit height so the OS selects its native default");
assert.equal(options.trafficLightPosition, undefined);
assert.equal(options.autoHideMenuBar, true);
assert.equal(options.webPreferences.contextIsolation, true);