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:
parent
c64a5ccf29
commit
73fcaaeda4
2 changed files with 21 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue