Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sources/code/main/modules/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ const defaultAppConfig = Object.freeze({
window: {
transparent: false,
hideOnClose: true
},
darwin: {
csd: false
}
},
privacy: {
Expand Down
4 changes: 4 additions & 0 deletions sources/code/main/windows/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export default function createMainWindow(...flags:MainWindowFlags): BrowserWindo
backgroundColor: appInfo.backgroundColor,
transparent: appConfig.value.settings.general.window.transparent,
show: false,
...(process.platform === "darwin" && appConfig.value.settings.general.darwin.csd && {
titleBarStyle: "hiddenInset",
trafficLightPosition: { x: 10, y: 10 },
}),
webPreferences: {
preload: resolve(app.getAppPath(), "app/code/renderer/preload/main.js"),
nodeIntegration: false, // Never set to "true"!
Expand Down
7 changes: 7 additions & 0 deletions sources/translations/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
"transparent": "Allow for translucent window background.",
"hideOnClose": "Hide window to tray with the close button."
}
},
"darwin": {
"name": "macOS related settings",
"description": "Controls integrations with macOS system.",
"labels": {
"csd": "Enable client-side traffic lights placement."
}
}
},
"privacy": {
Expand Down
7 changes: 7 additions & 0 deletions sources/translations/pl/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
"transparent": "Zezwól na przezroczyste tło okna.",
"hideOnClose": "Ukrywaj okno do zasobnika przyciskiem zamykania."
}
},
"darwin": {
"name": "Ustawienia dla systemu macOS",
"description": "Steruje integracją z systemem macOS.",
"labels": {
"csd": "Włącz pozycjonowanie sygnalizacji świetlnej po stronie klienta."
}
}
},
"privacy": {
Expand Down
Loading