From 346023f7ecdeca083a283ba466d6db3018d49a80 Mon Sep 17 00:00:00 2001 From: lainsce Date: Wed, 18 Jan 2023 03:46:04 -0300 Subject: [PATCH] forgor --- lib/Widgets/AppBar.vala | 4 ++++ lib/Widgets/SideBar.vala | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/Widgets/AppBar.vala b/lib/Widgets/AppBar.vala index 11a9282c..f23d47ca 100644 --- a/lib/Widgets/AppBar.vala +++ b/lib/Widgets/AppBar.vala @@ -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"); } /** @@ -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"); } /** diff --git a/lib/Widgets/SideBar.vala b/lib/Widgets/SideBar.vala index 3658c3ed..5772e3a7 100644 --- a/lib/Widgets/SideBar.vala +++ b/lib/Widgets/SideBar.vala @@ -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); }