fix(tray): bring back dev icon

This commit is contained in:
Elian Doran 2025-02-01 12:45:32 +02:00
parent 0f2e50d265
commit c80bf48d13
No known key found for this signature in database
6 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ function generateDpiScaledIcons {
} }
generateDpiScaledIcons "$images_dir/icon-color.svg" generateDpiScaledIcons "$images_dir/icon-color.svg"
generateDpiScaledIcons "$images_dir/icon-purple.svg"
for file in *.svg; do for file in *.svg; do
name=$(basename $file .svg) name=$(basename $file .svg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -33,9 +33,9 @@ function getIconSize() {
function getTrayIconPath() { function getTrayIconPath() {
const iconSize = getIconSize(); const iconSize = getIconSize();
const suffix = isDev ? "-dev" : ""; const name = isDev ? "icon-purple" : "icon-color";
return path.join(path.dirname(fileURLToPath(import.meta.url)), "../..", "images", "app-icons", "tray", `icon-color.png`); return path.join(path.dirname(fileURLToPath(import.meta.url)), "../..", "images", "app-icons", "tray", `${name}.png`);
} }
function getIconPath(name: string) { function getIconPath(name: string) {