diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-04 21:54:50 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-04 21:54:50 +0200 |
commit | 48982a08f1a66f5b916c61682fe242bbfbf823ea (patch) | |
tree | 2d28a74107f0c1299726e20694a380bb8464b7dc /Userland/Services/Taskbar | |
parent | 49d0b9e808584663da116b2dc50e7dfc2c247b60 (diff) | |
download | serenity-48982a08f1a66f5b916c61682fe242bbfbf823ea.zip |
Taskbar: Give the "Show/Hide Desktop" button an icon :^)
Diffstat (limited to 'Userland/Services/Taskbar')
-rw-r--r-- | Userland/Services/Taskbar/TaskbarWindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp index 59e7f29503..a99573db1e 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.cpp +++ b/Userland/Services/Taskbar/TaskbarWindow.cpp @@ -62,7 +62,7 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu) auto& main_widget = set_main_widget<TaskbarWidget>(); main_widget.set_layout<GUI::HorizontalBoxLayout>(); - main_widget.layout()->set_margins({ 3, 3, 3, 1 }); + main_widget.layout()->set_margins({ 3, 3, 1, 1 }); m_start_button = GUI::Button::construct("Serenity"); m_start_button->set_font(Gfx::FontDatabase::default_font().bold_variant()); @@ -90,7 +90,9 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu) m_show_desktop_button = GUI::Button::construct(); m_show_desktop_button->set_tooltip("Show Desktop"); - m_show_desktop_button->set_fixed_size(12, 21); + m_show_desktop_button->set_icon(GUI::Icon::default_icon("desktop").bitmap_for_size(16)); + m_show_desktop_button->set_button_style(Gfx::ButtonStyle::Coolbar); + m_show_desktop_button->set_fixed_size(24, 24); m_show_desktop_button->on_click = TaskbarWindow::show_desktop_button_clicked; main_widget.add_child(*m_show_desktop_button); |