mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 06:59:04 +01:00
feat(native-buttons): apply inset style for macOS
This commit is contained in:
parent
d472a00532
commit
07beeda79c
@ -115,8 +115,14 @@ async function createMainWindow(app: App) {
|
|||||||
function getWindowExtraOpts() {
|
function getWindowExtraOpts() {
|
||||||
const extraOpts: Partial<BrowserWindowConstructorOptions> = {};
|
const extraOpts: Partial<BrowserWindowConstructorOptions> = {};
|
||||||
if (!optionService.getOptionBool('nativeTitleBarVisible')) {
|
if (!optionService.getOptionBool('nativeTitleBarVisible')) {
|
||||||
|
if (process.platform !== "darwin") {
|
||||||
|
// Windows, Linux
|
||||||
extraOpts.titleBarStyle = "hidden";
|
extraOpts.titleBarStyle = "hidden";
|
||||||
extraOpts.titleBarOverlay = (process.platform !== "darwin");
|
extraOpts.titleBarOverlay = true;
|
||||||
|
} else {
|
||||||
|
// macOS
|
||||||
|
extraOpts.titleBarStyle = "hiddenInset";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return extraOpts;
|
return extraOpts;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user