Files
federated-calendar/src/gui/gcal-calendar-list.blp
T
Hari Rana a64e3b59a2 gui/calendar-list: Remove calendar-list style class
This fixes a bug where the calendar list in the sidebar would not
change the background color when hovering over a calendar.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/824>
2026-08-31 13:45:30 +00:00

41 lines
983 B
Plaintext

using Gtk 4.0;
using Adw 1;
template $GcalCalendarList: Adw.Bin {
child: ScrolledWindow {
hscrollbar-policy: never;
propagate-natural-height: true;
propagate-natural-width: true;
child: Adw.Clamp {
maximum-size: 800;
tightening-threshold: 800;
child: ListBox calendar_listbox {
hexpand: true;
selection-mode: none;
row-activated => $on_listbox_row_activated_cb(template) not-swapped;
// Allow Page-Up/Page-Down to consistently switch months/weeks,
// regardless of whether the sidebar's calendars listbox has focus.
ShortcutController {
propagation-phase: capture;
Shortcut {
trigger: "Page_Up";
action: "action(win.previous-date)";
}
Shortcut {
trigger: "Page_Down";
action: "action(win.next-date)";
}
}
styles [
"navigation-sidebar",
]
};
};
};
}