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

Commit

Permalink
Size icons correctly for Adwaita.
Browse files Browse the repository at this point in the history
Default to Adwaita size as being less likely to visually mess up.
  • Loading branch information
Adrian Cochrane committed Oct 28, 2018
1 parent 012d2b5 commit 626f30b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Widgets/header/HeaderBarWithMenus.vala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public class Odysseus.Header.HeaderBarWithMenus : Gtk.HeaderBar {
uint key, owned Action? action, owned BuildMenu build_menu,
Gdk.ModifierType modifier = Gdk.ModifierType.CONTROL_MASK,
bool dynamic_menu = false) {
var item = new ButtonWithMenu.from_icon_name(icon + "-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
var item = new ButtonWithMenu.from_icon_name(icon + "-symbolic",
Gtk.Settings.get_default().gtk_theme_name == "elementary" ?
Gtk.IconSize.LARGE_TOOLBAR : Gtk.IconSize.BUTTON);
item.tooltip_text = tooltip;
if (key != 0) item.tooltip_text += " (%s)".printf(
Gtk.accelerator_get_label(key, modifier));
Expand Down

0 comments on commit 626f30b

Please sign in to comment.