page-wrapper: Make all pages scrollable

This commit is contained in:
Peter Eisenmann
2024-06-10 09:34:00 +02:00
parent 607e9dea67
commit 1ccbc70ead
2 changed files with 25 additions and 26 deletions

View File

@@ -2,28 +2,22 @@ using Gtk 4.0;
using Gio 2.0;
template $LanguagePage : Box {
ScrolledWindow {
propagate-natural-height: true;
styles ["embedded"]
child: Box {
orientation: vertical;
orientation: vertical;
ListBox suggested_list {
hexpand: true;
/* Margin is set here, in case this list is empty */
margin-bottom: 12;
row-activated => $language_row_activated();
styles ["boxed-list", "bottom-spacing"]
}
ListBox suggested_list {
hexpand: true;
/* Margin is set here, in case this list is empty */
margin-bottom: 12;
row-activated => $language_row_activated();
styles ["boxed-list", "bottom-spacing"]
}
ListBox other_list {
hexpand: true;
row-activated => $language_row_activated();
styles ["boxed-list", "bottom-spacing"]
}
};
ListBox other_list {
hexpand: true;
row-activated => $language_row_activated();
styles ["boxed-list", "bottom-spacing"]
}
}
Gio.ListStore suggested_model {}
Gio.ListStore other_model {}
Gio.ListStore other_model {}

View File

@@ -2,12 +2,17 @@ using Gtk 4.0;
using Adw 1;
template $PageWrapper : Adw.Bin {
Adw.Clamp {
maximum-size: 500;
tightening-threshold: 352;
child:
Adw.Bin content {
hexpand: true;
child: ScrolledWindow {
propagate-natural-height: true;
vexpand: true;
styles ["embedded"]
child: Adw.Clamp {
maximum-size: 500;
tightening-threshold: 352;
child: Adw.Bin content {
hexpand: true;
};
};
}
};
}