From 9dbcf33679d0169737b7289e1ba161708c212369 Mon Sep 17 00:00:00 2001 From: lainsce Date: Thu, 19 Jan 2023 01:03:37 -0300 Subject: [PATCH] whoops --- lib/Widgets/AppBar.vala | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Widgets/AppBar.vala b/lib/Widgets/AppBar.vala index c31e02eb..c384ceea 100644 --- a/lib/Widgets/AppBar.vala +++ b/lib/Widgets/AppBar.vala @@ -85,7 +85,8 @@ public class He.AppBar : He.Bin { sub_box.remove (btn_box); title_box.append (btn_box); viewtitle_mini.add_css_class ("title"); - flat = false; + main_box.add_css_class ("appbar"); + main_box.remove_css_class ("flat-appbar"); if (!_show_buttons) top_box.margin_top = 0; else @@ -103,9 +104,8 @@ public class He.AppBar : He.Bin { title_box.remove (btn_box); sub_box.append (btn_box); viewtitle_mini.remove_css_class ("title"); - if (flat == false) { - flat = true; - } + main_box.add_css_class ("flat-appbar"); + main_box.remove_css_class ("appbar"); if (!_show_buttons) top_box.margin_top = 36; else @@ -125,8 +125,9 @@ public class He.AppBar : He.Bin { sub_box.remove (btn_box); title_box.append (btn_box); viewtitle_mini.add_css_class ("title"); - flat = false; - if (!show_buttons) + main_box.add_css_class ("appbar"); + main_box.remove_css_class ("flat-appbar"); + if (!_show_buttons) top_box.margin_top = 0; else top_box.margin_top = 0; @@ -143,9 +144,8 @@ public class He.AppBar : He.Bin { title_box.remove (btn_box); sub_box.append (btn_box); viewtitle_mini.remove_css_class ("title"); - if (flat == false) { - flat = true; - } + main_box.add_css_class ("flat-appbar"); + main_box.remove_css_class ("appbar"); if (!_show_buttons) top_box.margin_top = 36; else