Skip to content

Commit

Permalink
forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 18, 2023
1 parent 215cd85 commit 346023f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Widgets/AppBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ public class He.AppBar : He.Bin {
*/
public override void add_child (Gtk.Builder builder, GLib.Object child, string? type) {
btn_box.prepend ((Gtk.Widget)child);
((Gtk.Widget) child).add_css_class ("disclosure-button");
((Gtk.Widget) child).remove_css_class ("image-button");
}

/**
Expand All @@ -215,6 +217,8 @@ public class He.AppBar : He.Bin {
*/
public void append(Gtk.Widget child) {
btn_box.append (child);
((Gtk.Widget) child).add_css_class ("disclosure-button");
((Gtk.Widget) child).remove_css_class ("image-button");
}

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Widgets/SideBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public class He.SideBar : He.Bin, Gtk.Buildable {
if (type == "titlebar-button") {
titlebar.btn_box.append ((Gtk.Widget) child);
((Gtk.Widget) child).add_css_class ("disclosure-button");
((Gtk.Widget) child).remove_css_class ("image-button");
} else {
box.append ((Gtk.Widget) child);
}
Expand Down

0 comments on commit 346023f

Please sign in to comment.