Make status buttons flat
This commit is contained in:
parent
97120a023c
commit
5785a5d06f
|
@ -22,6 +22,7 @@ public class Tootle.NotificationWidget : Gtk.Grid {
|
|||
label.halign = Gtk.Align.START;
|
||||
label.use_markup = true;
|
||||
dismiss_button = new Gtk.Button.from_icon_name ("close-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
|
||||
dismiss_button.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
|
||||
dismiss_button.tooltip_text = _("Dismiss");
|
||||
dismiss_button.clicked.connect (() => {
|
||||
var parent = this.get_parent () as Gtk.Box;
|
||||
|
|
|
@ -53,7 +53,6 @@ public class Tootle.StatusWidget : Gtk.Grid {
|
|||
|
||||
counters = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6); //TODO: currently useless
|
||||
counters.margin_top = 6;
|
||||
counters.margin_bottom = 12;
|
||||
counters.add(reblog);
|
||||
counters.add(reblogs);
|
||||
counters.add(favorite);
|
||||
|
@ -99,7 +98,8 @@ public class Tootle.StatusWidget : Gtk.Grid {
|
|||
var icon = new Gtk.Image.from_icon_name (path, Gtk.IconSize.SMALL_TOOLBAR);
|
||||
|
||||
var button = new Gtk.ToggleButton ();
|
||||
|
||||
button.can_default = false;
|
||||
button.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
|
||||
button.add (icon);
|
||||
return button;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue