Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Dec 25, 2022
1 parent 01e4b04 commit 3753d80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Widgets/AppBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,23 @@ public class He.AppBar : He.Bin {
vadj = this._scroller.get_vadjustment ();
if (vadj.value != 0) {
viewtitle.set_visible (true);
viewtitle.add_css_class ("title");
flat = false;
} else {
viewtitle.set_visible (false);
viewtitle.remove_css_class ("title");
if (flat == false) {
flat = true;
}
}
vadj.value_changed.connect ((a) => {
if (a.value != 0) {
viewtitle.set_visible (true);
viewtitle.add_css_class ("title");
flat = false;
} else {
viewtitle.set_visible (false);
viewtitle.remove_css_class ("title");
if (flat == false) {
flat = true;
}
Expand Down Expand Up @@ -193,7 +197,6 @@ public class He.AppBar : He.Bin {
control_box.append (back_button);

viewtitle.set_visible (false);
viewtitle.add_css_class ("title");

title.pack_start (control_box);

Expand Down

0 comments on commit 3753d80

Please sign in to comment.