mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-23 15:51:35 +08: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() {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user