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

Taskbar: Add a context menu to open clock settings from the clock widget

This commit is contained in:
Timothy Flynn 2022-09-20 10:22:10 -04:00 committed by Sam Atkins
parent c64a5ccf29
commit 73fcaaeda4
2 changed files with 21 additions and 0 deletions

View file

@ -31,6 +31,7 @@ private:
virtual void paint_event(GUI::PaintEvent&) override;
virtual void mousedown_event(GUI::MouseEvent&) override;
virtual void context_menu_event(GUI::ContextMenuEvent&) override;
void tick_clock()
{
@ -52,6 +53,7 @@ private:
RefPtr<GUI::Button> m_selected_calendar_button;
RefPtr<GUI::Button> m_jump_to_button;
RefPtr<GUI::Button> m_calendar_launcher;
RefPtr<GUI::Menu> m_context_menu;
RefPtr<Core::Timer> m_timer;
int m_time_width { 0 };
Gfx::IntSize m_window_size { 158, 186 };