Skip to content

Commit

Permalink
fix: gicon resulting in extremely bright or dim icons when no icon wa…
Browse files Browse the repository at this point in the history
…s found (used fallback)

Switch to using get_icon on the application which seems to fix it.
  • Loading branch information
JoshStrobl committed Dec 8, 2024
1 parent 8a25ad4 commit a4aae37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/panel/applets/icon-tasklist/widgets/IconButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,9 @@ public class IconButton : Gtk.ToggleButton {
}

if (window_group != null) {
unowned var gicon = window_group.application.get_gicon();
icon.set_from_gicon(gicon, Gtk.IconSize.INVALID);
var size = target_icon_size == 0 ? DEFAULT_ICON_SIZE : target_icon_size;
unowned var pixbuf = window_group.application.get_icon(size, get_scale_factor());
icon.set_from_pixbuf(pixbuf);
} else if (app?.icon != null) {
icon.set_from_gicon(app?.icon, Gtk.IconSize.INVALID);
} else {
Expand Down

0 comments on commit a4aae37

Please sign in to comment.