feat(tray): use template for main icon

This commit is contained in:
Elian Doran 2025-02-01 12:53:11 +02:00
parent 6db51d648b
commit ddb277e8e5
No known key found for this signature in database
6 changed files with 4 additions and 3 deletions

View File

@ -16,14 +16,15 @@ output_dir="$images_dir/app-icons/tray"
function generateDpiScaledIcons {
file=$1
name=$(basename $file .svg)
suffix=$2
name="$(basename $file .svg)$suffix"
inkscape -w 16 -h 16 "$file" -o "$output_dir/$name.png"
inkscape -w 20 -h 20 "$file" -o "$output_dir/$name@1.25x.png"
inkscape -w 24 -h 24 "$file" -o "$output_dir/$name@1.5x.png"
inkscape -w 32 -h 32 "$file" -o "$output_dir/$name@2x.png"
}
generateDpiScaledIcons "$images_dir/icon-black.svg"
generateDpiScaledIcons "$images_dir/icon-black.svg" "Template"
generateDpiScaledIcons "$images_dir/icon-color.svg"
generateDpiScaledIcons "$images_dir/icon-purple.svg"

View File

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 390 B

View File

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 490 B

View File

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 589 B

View File

Before

Width:  |  Height:  |  Size: 728 B

After

Width:  |  Height:  |  Size: 728 B

View File

@ -22,7 +22,7 @@ let isVisible = true;
function getTrayIconPath() {
let name: string;
if (isMac) {
name = "icon-black";
name = "icon-blackTemplate";
} else if (isDev) {
name = "icon-purple";
} else {