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

Taskbar: Add start menu :^)

This will replace the system menu in the top left of the screen.
The button behavior doesn't feel quite perfect yet, but this will
work for now!
This commit is contained in:
Andreas Kling 2021-03-25 22:55:10 +01:00
parent 32c6e31f4c
commit 73a2045c5b
6 changed files with 360 additions and 4 deletions

View file

@ -39,7 +39,7 @@ public:
static int taskbar_height() { return 28; }
private:
TaskbarWindow();
explicit TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu);
void create_quick_launch_bar();
void on_screen_rect_change(const Gfx::IntRect&);
NonnullRefPtr<GUI::Button> create_button(const WindowIdentifier&);
@ -50,6 +50,7 @@ private:
virtual void wm_event(GUI::WMEvent&) override;
NonnullRefPtr<GUI::Menu> m_start_menu;
RefPtr<GUI::Widget> m_task_button_container;
RefPtr<Gfx::Bitmap> m_default_icon;
};