page-wrapper: Make all pages scrollable
This commit is contained in:
@@ -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 {}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user