feat(tray): use template for main icon
| @ -16,14 +16,15 @@ output_dir="$images_dir/app-icons/tray" | |||||||
| 
 | 
 | ||||||
| function generateDpiScaledIcons { | function generateDpiScaledIcons { | ||||||
|   file=$1 |   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 16 -h 16 "$file" -o "$output_dir/$name.png" | ||||||
|   inkscape -w 20 -h 20 "$file" -o "$output_dir/$name@1.25x.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 24 -h 24 "$file" -o "$output_dir/$name@1.5x.png" | ||||||
|   inkscape -w 32 -h 32 "$file" -o "$output_dir/$name@2x.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-color.svg" | ||||||
| generateDpiScaledIcons "$images_dir/icon-purple.svg" | generateDpiScaledIcons "$images_dir/icon-purple.svg" | ||||||
| 
 | 
 | ||||||
|  | |||||||
| Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 390 B | 
| Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B | 
| Before Width: | Height: | Size: 589 B After Width: | Height: | Size: 589 B | 
| Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 728 B | 
| @ -22,7 +22,7 @@ let isVisible = true; | |||||||
| function getTrayIconPath() { | function getTrayIconPath() { | ||||||
|     let name: string; |     let name: string; | ||||||
|     if (isMac) { |     if (isMac) { | ||||||
|         name = "icon-black"; |         name = "icon-blackTemplate"; | ||||||
|     } else if (isDev) { |     } else if (isDev) { | ||||||
|         name = "icon-purple"; |         name = "icon-purple"; | ||||||
|     } else { |     } else { | ||||||
|  | |||||||
 Elian Doran
						Elian Doran