mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 00:07:35 +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:
parent
32c6e31f4c
commit
73a2045c5b
6 changed files with 360 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue