mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 23:04:10 +08:00
Bring this window to the top
This commit is contained in:
parent
dc4983a013
commit
66c25e7f29
1 changed files with 0 additions and 3 deletions
|
|
@ -58,7 +58,6 @@ export default class TitleBarButtonsWidget extends BasicWidget {
|
|||
const remote = utils.dynamicRequire('@electron/remote');
|
||||
if (remote.BrowserWindow.getFocusedWindow().isAlwaysOnTop()) {
|
||||
$topBtn.css("background-color", "var(--accented-background-color)");
|
||||
$topBtn.attr("title","The window is already on top. ");
|
||||
}
|
||||
}());
|
||||
$topBtn.on('click', () => {
|
||||
|
|
@ -69,11 +68,9 @@ export default class TitleBarButtonsWidget extends BasicWidget {
|
|||
if (isAlwaysOnTop) {
|
||||
focusedWindow.setAlwaysOnTop(false)
|
||||
$topBtn.css("background-color", "");
|
||||
$topBtn.attr("title","Bring this window to the top. ");
|
||||
} else {
|
||||
focusedWindow.setAlwaysOnTop(true);
|
||||
$topBtn.css("background-color", "var(--accented-background-color)");
|
||||
$topBtn.attr("title","The window is already on top. ");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue