Skip to content

Commit

Permalink
Adjust AppBar layout and fix indentation issues
Browse files Browse the repository at this point in the history
- Added margin to labels_box for better spacing.
- Corrected indentation in child iteration loop.
- Fixed indentation for back_button image size setting.
  • Loading branch information
lainsce committed Aug 30, 2024
1 parent 3662e39 commit 6e352a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Widgets/AppBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public class He.AppBar : He.Bin {
viewsubtitle.visible = true;
subtitle_box.set_visible (true);
main_box.spacing = 6;
labels_box.margin_start = 12;
} else {
viewsubtitle.label = null;
viewsubtitle.visible = false;
Expand Down Expand Up @@ -267,8 +268,8 @@ public class He.AppBar : He.Bin {

if (box != null) {
for (child = box.get_first_child ();
child != null;
child = child.get_next_sibling ()) {
child != null;
child = child.get_next_sibling ()) {
if (child.get_visible ()) {
has_visible = true;
break;
Expand Down Expand Up @@ -443,7 +444,7 @@ public class He.AppBar : He.Bin {
back_button.is_disclosure = true;
back_button.set_size_request (26, 26);
if (((Gtk.Image) back_button.get_first_child ()) != null) {
((Gtk.Image) back_button.get_first_child ()).pixel_size = 24;
((Gtk.Image) back_button.get_first_child ()).pixel_size = 24;
}
back_button.clicked.connect (() => {
var selected_page = stack.pages.get_selection ();
Expand Down

0 comments on commit 6e352a2

Please sign in to comment.