1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

fix(tray): icons ignoring scaling

This commit is contained in:
Jake Stanger 2024-02-25 17:13:43 +00:00
parent 72440e69c9
commit 0675b917f2
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
3 changed files with 17 additions and 12 deletions

View file

@ -157,8 +157,7 @@ fn on_update(
}
if item.icon_name.as_ref() != menu_item.icon_name() {
match icon::get_image(&item, icon_theme, icon_size)
{
match icon::get_image(&item, icon_theme, icon_size) {
Ok(image) => menu_item.set_image(&image),
Err(_) => menu_item.set_label(label),
};