Skip to content

Commit

Permalink
Enough braincells destroyed trying to do this.
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Oct 12, 2023
1 parent f66e4a4 commit 8977693
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Widgets/AppBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,18 @@ public class He.AppBar : He.Bin {
main_box.add_css_class ("flat-appbar");

notify["show-left-title-buttons"].connect (() => {
if (!show_left_title_buttons) {
if (title.empty) {
top_box.margin_top = 36;
} else if (!show_left_title_buttons && !show_right_title_buttons) {
top_box.margin_top = 36;
} else {
top_box.margin_top = 0;
}
});
notify["show-right-title-buttons"].connect (() => {
if (title.empty) {
top_box.margin_top = 36;
} else if (!show_left_title_buttons && !show_right_title_buttons) {
top_box.margin_top = 36;
} else {
top_box.margin_top = 0;
Expand Down

0 comments on commit 8977693

Please sign in to comment.