Skip to content

Commit

Permalink
fix margin
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 18, 2023
1 parent 5349cac commit d9e1c01
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/Widgets/AppBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ public class He.AppBar : He.Bin {
main_box.add_css_class ("appbar");
main_box.remove_css_class ("flat-appbar");
}

if (_flat && !_show_buttons) {
top_box.margin_top = 36;
} else {
top_box.margin_top = 0;
}
}
}

Expand All @@ -220,13 +226,7 @@ public class He.AppBar : He.Bin {
_show_buttons = value;

title.set_visible (value);

if (!value && _flat) {
top_box.margin_top = 36;
} else {
top_box.margin_top = 0;
}

top_box.margin_top = 0;
}
}

Expand Down

0 comments on commit d9e1c01

Please sign in to comment.