Skip to content

Build your personal knowledge base with Trilium Notes

feat(native-buttons): apply inset style for macOS

Elian Doran07beeda79c32
diff --git a/src/services/window.ts b/src/services/window.ts
index f60c5f783a..27a174b78a 100644
--- a/src/services/window.ts
+++ b/src/services/window.ts
@@ -115,8 +115,14 @@ async function createMainWindow(app: App) {
function getWindowExtraOpts() {
const extraOpts: Partial<BrowserWindowConstructorOptions> = {};
if (!optionService.getOptionBool('nativeTitleBarVisible')) {
- extraOpts.titleBarStyle = "hidden";
- extraOpts.titleBarOverlay = (process.platform !== "darwin");
+ if (process.platform !== "darwin") {
+ // Windows, Linux
+ extraOpts.titleBarStyle = "hidden";
+ extraOpts.titleBarOverlay = true;
+ } else {
+ // macOS
+ extraOpts.titleBarStyle = "hiddenInset";
+ }
}
return extraOpts;