mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
feat(native-buttons): adjustable offset
This commit is contained in:
@@ -68,7 +68,9 @@ function initTitleBarButtons() {
|
||||
}
|
||||
|
||||
// FIXME: call only on darwin
|
||||
currentWindow.setWindowButtonPosition({ x: 20, y: 20 });
|
||||
const xOffset = parseInt(style.getPropertyValue("--native-titlebar-darwin-x-offset"), 10);
|
||||
const yOffset = parseInt(style.getPropertyValue("--native-titlebar-darwin-y-offset"), 10);
|
||||
currentWindow.setWindowButtonPosition({ x: xOffset, y: yOffset });
|
||||
}
|
||||
|
||||
// Update the native title bar buttons.
|
||||
|
||||
Reference in New Issue
Block a user