feat(tray): support hi-DPI

This commit is contained in:
Elian Doran
2025-02-01 11:59:42 +02:00
parent 0acd3c621e
commit 755774042e
30 changed files with 5 additions and 5 deletions

View File

@@ -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`);
}