[desktop] Switch to png for tray menu

This commit is contained in:
Vladimir Stoilov 2024-07-24 11:09:42 +03:00
parent 84c6bff901
commit a12504178e
No known key found for this signature in database
GPG key ID: 2F190B67A43A81AF
17 changed files with 16 additions and 16 deletions

View file

@ -1,14 +1,14 @@
#!/bin/sh
# Traymenu icons. Sometimes the wrong size is selected, so leave just one.
convert pm_dark_green_512.png -colors 256 -define icon:auto-resize=64 pm_dark_green.ico
convert pm_dark_blue_512.png -colors 256 -define icon:auto-resize=64 pm_dark_blue.ico
convert pm_dark_red_512.png -colors 256 -define icon:auto-resize=64 pm_dark_red.ico
convert pm_dark_yellow_512.png -colors 256 -define icon:auto-resize=64 pm_dark_yellow.ico
convert pm_light_blue_512.png -colors 256 -define icon:auto-resize=64 pm_light_blue.ico
convert pm_light_green_512.png -colors 256 -define icon:auto-resize=64 pm_light_green.ico
convert pm_light_red_512.png -colors 256 -define icon:auto-resize=64 pm_light_red.ico
convert pm_light_yellow_512.png -colors 256 -define icon:auto-resize=64 pm_light_yellow.ico
convert pm_dark_green_512.png -resize 64x64 pm_dark_green_64.png
convert pm_dark_blue_512.png -resize 64x64 pm_dark_blue_64.png
convert pm_dark_red_512.png -resize 64x64 pm_dark_red_64.png
convert pm_dark_yellow_512.png -resize 64x64 pm_dark_yellow_64.png
convert pm_light_blue_512.png -resize 64x64 pm_light_blue_64.png
convert pm_light_green_512.png -resize 64x64 pm_light_green_64.png
convert pm_light_red_512.png -resize 64x64 pm_light_red_64.png
convert pm_light_yellow_512.png -resize 64x64 pm_light_yellow_64.png
convert pm_dark_512.png -colors 256 -define icon:auto-resize=64,48,32,16 pm_dark.ico
convert pm_light_512.png -colors 256 -define icon:auto-resize=64,48,32,16 pm_light.ico

Binary file not shown.

After

(image error) Size: 13 KiB

Binary file not shown.

After

(image error) Size: 9.8 KiB

Binary file not shown.

After

(image error) Size: 9.7 KiB

Binary file not shown.

After

(image error) Size: 13 KiB

Binary file not shown.

After

(image error) Size: 9.7 KiB

Binary file not shown.

After

(image error) Size: 12 KiB

Binary file not shown.

After

(image error) Size: 9.7 KiB

Binary file not shown.

After

(image error) Size: 13 KiB

Binary file not shown.

After

(image error) Size: 10 KiB

Binary file not shown.

After

(image error) Size: 13 KiB

Binary file not shown.

After

(image error) Size: 9.9 KiB

Binary file not shown.

After

(image error) Size: 13 KiB

Binary file not shown.

After

(image error) Size: 9.9 KiB

Binary file not shown.

After

(image error) Size: 13 KiB

Binary file not shown.

After

(image error) Size: 9.9 KiB

View file

@ -44,9 +44,9 @@ const PM_TRAY_ICON_ID: &'static str = "pm_icon";
fn get_green_icon() -> &'static [u8] {
const LIGHT_GREEN_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_green.ico");
include_bytes!("../../../../assets/data/icons/pm_light_green_64.png");
const DARK_GREEN_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_dark_green.ico");
include_bytes!("../../../../assets/data/icons/pm_dark_green_64.png");
let mode = dark_light::detect();
match mode {
@ -57,9 +57,9 @@ fn get_green_icon() -> &'static [u8] {
fn get_blue_icon() -> &'static [u8] {
const LIGHT_BLUE_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_blue.ico");
include_bytes!("../../../../assets/data/icons/pm_light_blue_64.png");
const DARK_BLUE_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_dark_blue.ico");
include_bytes!("../../../../assets/data/icons/pm_dark_blue_64.png");
let mode = dark_light::detect();
match mode {
dark_light::Mode::Light => DARK_BLUE_ICON,
@ -69,9 +69,9 @@ fn get_blue_icon() -> &'static [u8] {
fn get_red_icon() -> &'static [u8] {
const LIGHT_RED_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_red.ico");
include_bytes!("../../../../assets/data/icons/pm_light_red_64.png");
const DARK_RED_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_dark_red.ico");
include_bytes!("../../../../assets/data/icons/pm_dark_red_64.png");
let mode = dark_light::detect();
match mode {
dark_light::Mode::Light => DARK_RED_ICON,
@ -81,10 +81,10 @@ fn get_red_icon() -> &'static [u8] {
fn get_yellow_icon() -> &'static [u8] {
const LIGHT_YELLOW_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_yellow.ico");
include_bytes!("../../../../assets/data/icons/pm_light_yellow_64.png");
const DARK_YELLOW_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_dark_yellow.ico");
include_bytes!("../../../../assets/data/icons/pm_dark_yellow_64.png");
let mode = dark_light::detect();
match mode {
dark_light::Mode::Light => DARK_YELLOW_ICON,