Skip to content

Commit

Permalink
fix[#80] set sidebar scroll dynamically
Browse files Browse the repository at this point in the history
- convert sidebar to gtkbox
- wrap sidebar listboxes with gtkscrolledwindow
  • Loading branch information
jardon committed Nov 2, 2024
1 parent 115c5a5 commit e19303f
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions apx_gui/gtk/sidebar.ui
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</object>
</child>
<property name="content">
<object class="GtkScrolledWindow">
<object class="GtkBox">
<child>
<object class="AdwViewStack" id="stack_sidebar">
<property name="vexpand">true</property>
Expand All @@ -38,10 +38,15 @@
<property name="name">subsystems</property>
<property name="icon-name">utilities-terminal-symbolic</property>
<property name="child">
<object class="GtkListBox" id="list_subsystems">
<style>
<class name="navigation-sidebar"/>
</style>
<object class="GtkScrolledWindow">
<property name="hexpand">true</property>
<child>
<object class="GtkListBox" id="list_subsystems">
<style>
<class name="navigation-sidebar"/>
</style>
</object>
</child>
</object>
</property>
</object>
Expand All @@ -51,10 +56,15 @@
<property name="name">stacks</property>
<property name="icon-name">vanilla-puzzle-piece-symbolic</property>
<property name="child">
<object class="GtkListBox" id="list_stacks">
<style>
<class name="navigation-sidebar"/>
</style>
<object class="GtkScrolledWindow">
<property name="hexpand">true</property>
<child>
<object class="GtkListBox" id="list_stacks">
<style>
<class name="navigation-sidebar"/>
</style>
</object>
</child>
</object>
</property>
</object>
Expand All @@ -64,10 +74,15 @@
<property name="name">pkgmanagers</property>
<property name="icon-name">insert-object-symbolic</property>
<property name="child">
<object class="GtkListBox" id="list_pkgmanagers">
<style>
<class name="navigation-sidebar"/>
</style>
<object class="GtkScrolledWindow">
<property name="hexpand">true</property>
<child>
<object class="GtkListBox" id="list_pkgmanagers">
<style>
<class name="navigation-sidebar"/>
</style>
</object>
</child>
</object>
</property>
</object>
Expand Down

0 comments on commit e19303f

Please sign in to comment.