titlebar refactor

This commit is contained in:
tusharmagar 2026-02-06 19:02:22 +05:30
parent cbe34aec8e
commit 840ae4b9cb
5 changed files with 67 additions and 13 deletions

View file

@ -71,6 +71,8 @@ function createWindow() {
height: 800,
show: false, // Don't show until ready
backgroundColor: "#252525", // Prevent white flash (matches dark mode)
titleBarStyle: "hiddenInset",
trafficLightPosition: { x: 12, y: 12 },
webPreferences: {
// IMPORTANT: keep Node out of renderer
nodeIntegration: false,