Make status buttons flat

This commit is contained in:
bleakgrey 2018-04-19 21:17:20 +03:00
parent 97120a023c
commit 5785a5d06f
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}