mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(tray): bring back dev icon
This commit is contained in:
parent
0f2e50d265
commit
c80bf48d13
@ -24,6 +24,7 @@ function generateDpiScaledIcons {
|
||||
}
|
||||
|
||||
generateDpiScaledIcons "$images_dir/icon-color.svg"
|
||||
generateDpiScaledIcons "$images_dir/icon-purple.svg"
|
||||
|
||||
for file in *.svg; do
|
||||
name=$(basename $file .svg)
|
||||
|
BIN
images/app-icons/tray/icon-purple.png
Normal file
BIN
images/app-icons/tray/icon-purple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 635 B |
BIN
images/app-icons/tray/icon-purple@1.25x.png
Normal file
BIN
images/app-icons/tray/icon-purple@1.25x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 804 B |
BIN
images/app-icons/tray/icon-purple@1.5x.png
Normal file
BIN
images/app-icons/tray/icon-purple@1.5x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 997 B |
BIN
images/app-icons/tray/icon-purple@2x.png
Normal file
BIN
images/app-icons/tray/icon-purple@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
@ -33,9 +33,9 @@ function getIconSize() {
|
||||
|
||||
function getTrayIconPath() {
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user