Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Dec 15, 2022
1 parent 9f69c1b commit 6add3bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Widgets/NavigationRail.vala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
this.add_css_class ("navigation-rail");
this.valign = Gtk.Align.CENTER;
((Gtk.BoxLayout)this.get_layout_manager ()).orientation = Gtk.Orientation.VERTICAL;
((Gtk.BoxLayout)this.get_layout_manager ()).spacing = 6;
}

private void on_stack_pages_changed (uint position, uint removed, uint added) {
Expand All @@ -81,9 +80,7 @@
unowned var button_link = this._buttons.nth (position);

var button = new Gtk.ToggleButton () {
active = this._stack_pages.is_selected (position),
margin_end = 12,
margin_start = 12
active = this._stack_pages.is_selected (position)
};
button.add_css_class ("navigation-rail-button");

Expand All @@ -93,7 +90,7 @@
var button_child_label = new Gtk.Label ("");
this._stack_pages.get_item (position).bind_property ("title", button_child_label, "label", SYNC_CREATE);

var button_child = new Gtk.Box (Gtk.Orientation.VERTICAL, 4);
var button_child = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
button_child.append (button_child_image);
button_child.append (button_child_label);

Expand Down

0 comments on commit 6add3bb

Please sign in to comment.