[desktop] fix icon resolution
14
assets/data/icons/generate_ico.sh
Normal 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
|
BIN
assets/data/icons/pm_dark.ico
Normal file
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 108 KiB |
BIN
assets/data/icons/pm_dark_blue.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 97 KiB |
BIN
assets/data/icons/pm_dark_green.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 110 KiB |
BIN
assets/data/icons/pm_dark_red.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 110 KiB |
BIN
assets/data/icons/pm_dark_yellow.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 109 KiB |
BIN
assets/data/icons/pm_light.ico
Normal file
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 108 KiB |
BIN
assets/data/icons/pm_light_blue.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 110 KiB |
BIN
assets/data/icons/pm_light_green.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 110 KiB |
BIN
assets/data/icons/pm_light_red.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 110 KiB |
BIN
assets/data/icons/pm_light_yellow.ico
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 110 KiB |
|
@ -39,14 +39,12 @@ const PM_TRAY_ICON_ID: &'static str = "pm_icon";
|
||||||
|
|
||||||
// Icons
|
// Icons
|
||||||
//
|
//
|
||||||
const BLUE_ICON: &'static [u8] =
|
const BLUE_ICON: &'static [u8] = include_bytes!("../../../../assets/data/icons/pm_light_blue.ico");
|
||||||
include_bytes!("../../../../assets/data/icons/pm_light_blue_512.ico");
|
const RED_ICON: &'static [u8] = include_bytes!("../../../../assets/data/icons/pm_light_red.ico");
|
||||||
const RED_ICON: &'static [u8] =
|
|
||||||
include_bytes!("../../../../assets/data/icons/pm_light_red_512.ico");
|
|
||||||
const YELLOW_ICON: &'static [u8] =
|
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] =
|
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(
|
pub fn setup_tray_menu(
|
||||||
app: &mut tauri::App,
|
app: &mut tauri::App,
|
||||||
|
|
|
@ -97,9 +97,9 @@
|
||||||
],
|
],
|
||||||
"icon": [
|
"icon": [
|
||||||
"../../../assets/data/icons/pm_dark_512.png",
|
"../../../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.png",
|
||||||
"../../../assets/data/icons/pm_light_512.ico"
|
"../../../assets/data/icons/pm_light.ico"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|