Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Commit

Permalink
Fixed indicator icon size (#8)
Browse files Browse the repository at this point in the history
This will need to be made configurable in the future.
  • Loading branch information
eth-p committed Oct 19, 2018
1 parent 5ecc0ce commit be58307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AyatanaIndicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class AyatanaCompatibility.Indicator : Wingpanel.Indicator {
private Gee.HashMap<Gtk.Widget, Gtk.Widget> menu_map;

const int MAX_ICON_SIZE = 24;
const int IDEAL_ICON_SIZE = 18;

public Indicator (IndicatorAyatana.ObjectEntry entry, IndicatorAyatana.Object obj, IndicatorIface indicator) {
string name_hint = entry.name_hint;
Expand Down Expand Up @@ -85,7 +86,7 @@ public class AyatanaCompatibility.Indicator : Wingpanel.Indicator {
ensure_max_size (image);
}

image.pixel_size = MAX_ICON_SIZE;
image.pixel_size = IDEAL_ICON_SIZE;

icon.set_widget (IndicatorButton.WidgetSlot.IMAGE, image);
}
Expand Down

0 comments on commit be58307

Please sign in to comment.