Skip to content

Commit

Permalink
Hide the Window title bar option on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sedwards2009 committed Nov 4, 2023
1 parent 36ae629 commit 0a9dfaf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main/src/settings/AppearancePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export class AppearancePage implements SettingsPageType {
"thick"
];
this.#initPreview();

const showTitleBar = process.platform !== "darwin";

let titleBarWarningLabel: QLabel = null;
const originalTitleBarStyle = generalConfig.titleBarStyle;

Expand Down Expand Up @@ -278,9 +281,9 @@ export class AppearancePage implements SettingsPageType {
}
})),

"Window Title Bar:",
showTitleBar && "Window Title Bar:",

BoxLayout({
showTitleBar && BoxLayout({
direction: Direction.LeftToRight,
spacing: 0,
contentsMargins: [0, 0, 0, 0],
Expand Down

0 comments on commit 0a9dfaf

Please sign in to comment.