1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibGUI: Make the calendar widget scrollable

This commit is contained in:
implicitfield 2023-06-20 19:37:28 +04:00 committed by Ali Mohammad Pur
parent 28b5438395
commit e504b63406
3 changed files with 20 additions and 1 deletions

View file

@ -83,6 +83,10 @@ ClockWidget::ClockWidget()
m_calendar = calendar_container.add<GUI::Calendar>();
m_selected_calendar_button->set_text(m_calendar->formatted_date().release_value_but_fixme_should_propagate_errors());
m_calendar->on_scroll = [&] {
update_selected_calendar_button();
};
m_calendar->on_tile_click = [&] {
m_selected_calendar_button->set_text(m_calendar->formatted_date().release_value_but_fixme_should_propagate_errors());
};