[desktop] fix icon resolution

This commit is contained in:
Vladimir Stoilov 2024-05-17 15:46:10 +03:00
parent 99b84d3f46
commit ede9cabccc
No known key found for this signature in database
GPG key ID: 2F190B67A43A81AF
23 changed files with 20 additions and 8 deletions

View file

@ -0,0 +1,14 @@
#!/bin/sh
# Traymenu icons. Sometimes to wrong size is selected so remove 256 and 64.
convert pm_dark_green_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_dark_green.ico
convert pm_dark_blue_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_dark_blue.ico
convert pm_dark_red_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_dark_red.ico
convert pm_dark_yellow_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_dark_yellow.ico
convert pm_light_blue_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_light_blue.ico
convert pm_light_green_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_light_green.ico
convert pm_light_red_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_light_red.ico
convert pm_light_yellow_512.png -colors 256 -define icon:auto-resize=48,32,16 pm_light_yellow.ico
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: 31 KiB

Binary file not shown.

Before

(image error) Size: 108 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 97 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 110 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 110 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 109 KiB

Binary file not shown.

After

(image error) Size: 31 KiB

Binary file not shown.

Before

(image error) Size: 108 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 110 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 110 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 110 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

Before

(image error) Size: 110 KiB

View file

@ -39,14 +39,12 @@ const PM_TRAY_ICON_ID: &'static str = "pm_icon";
// Icons
//
const BLUE_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_blue_512.ico");
const RED_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_red_512.ico");
const BLUE_ICON: &'static [u8] = include_bytes!("../../../../assets/data/icons/pm_light_blue.ico");
const RED_ICON: &'static [u8] = include_bytes!("../../../../assets/data/icons/pm_light_red.ico");
const YELLOW_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_yellow_512.ico");
include_bytes!("../../../../assets/data/icons/pm_light_yellow.ico");
const GREEN_ICON: &'static [u8] =
include_bytes!("../../../../assets/data/icons/pm_light_green_512.ico");
include_bytes!("../../../../assets/data/icons/pm_light_green.ico");
pub fn setup_tray_menu(
app: &mut tauri::App,

View file

@ -97,9 +97,9 @@
],
"icon": [
"../../../assets/data/icons/pm_dark_512.png",
"../../../assets/data/icons/pm_dark_512.ico",
"../../../assets/data/icons/pm_dark.ico",
"../../../assets/data/icons/pm_light_512.png",
"../../../assets/data/icons/pm_light_512.ico"
"../../../assets/data/icons/pm_light.ico"
]
}
}