calendars-page: Port to AdwPreferencesPage

This simplifies the UI code a bit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/446>
This commit is contained in:
Automeris naranja
2026-02-21 21:35:09 -05:00
committed by Hari Rana
parent 66a8c6b7ab
commit 6950324d17
@@ -10,33 +10,18 @@ template $GcalCalendarsPage: Adw.NavigationPage {
[top] [top]
Adw.HeaderBar {} Adw.HeaderBar {}
content: ScrolledWindow { content: Adw.PreferencesPage {
hexpand: true; Adw.PreferencesGroup {
hscrollbar-policy: never; ListBox listbox {
max-content-height: 900; selection-mode: none;
propagate-natural-height: true; row-activated => $on_listbox_row_activated_cb(template) not-swapped;
child: Adw.Clamp { styles [
child: Box { "calendars-list",
orientation: vertical; "boxed-list",
spacing: 24; ]
margin-top: 24; }
margin-bottom: 24; }
margin-start: 12;
margin-end: 12;
valign: start;
ListBox listbox {
selection-mode: none;
row-activated => $on_listbox_row_activated_cb(template) not-swapped;
styles [
"calendars-list",
"boxed-list",
]
}
};
};
}; };
[bottom] [bottom]