mirror of
https://github.com/zadam/trilium.git
synced 2026-01-06 23:42:15 +01:00
feat(tray): support hi-DPI
This commit is contained in:
@@ -38,9 +38,7 @@ function getTrayIconPath() {
|
||||
}
|
||||
|
||||
function getIconPath(name: string) {
|
||||
const size = 16;
|
||||
let suffix = (nativeTheme.shouldUseDarkColors ? "-inverted" : "");
|
||||
suffix += `-${size}`;
|
||||
const suffix = (nativeTheme.shouldUseDarkColors ? "-inverted" : "");
|
||||
return path.join(path.dirname(fileURLToPath(import.meta.url)), "../..", "images", "app-icons", "tray", `${name}${suffix}.png`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user