summaryrefslogtreecommitdiff
path: root/Userland/Services/Taskbar/TaskbarWindow.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-09 00:07:44 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-09 00:11:37 +0200
commit9d8aa2a57a235bdcb1066bd9270cb954d2573e41 (patch)
tree2a4504a3382e7c4726781f1e82f0d03645cabbcd /Userland/Services/Taskbar/TaskbarWindow.cpp
parentfbe6c275c9329acd4e0135177e1427d667ef3fda (diff)
downloadserenity-9d8aa2a57a235bdcb1066bd9270cb954d2573e41.zip
Taskbar+LibGUI+WindowServer: Shrink taskbar by one pixel
Make the taskbar 27 pixels tall instead of 28. This makes the button icons and applets vertically centered. On a related note, this required touching *way* too many places..
Diffstat (limited to 'Userland/Services/Taskbar/TaskbarWindow.cpp')
-rw-r--r--Userland/Services/Taskbar/TaskbarWindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp
index 05aeff2972..01d2835b3e 100644
--- a/Userland/Services/Taskbar/TaskbarWindow.cpp
+++ b/Userland/Services/Taskbar/TaskbarWindow.cpp
@@ -67,7 +67,7 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu)
m_start_button = GUI::Button::construct("Serenity");
m_start_button->set_font(Gfx::FontDatabase::default_bold_font());
m_start_button->set_icon_spacing(0);
- m_start_button->set_fixed_size(80, 22);
+ m_start_button->set_fixed_size(80, 21);
auto app_icon = GUI::Icon::default_icon("ladyball");
m_start_button->set_icon(app_icon.bitmap_for_size(16));
m_start_button->set_menu(m_start_menu);
@@ -170,8 +170,8 @@ void TaskbarWindow::update_applet_area()
NonnullRefPtr<GUI::Button> TaskbarWindow::create_button(const WindowIdentifier& identifier)
{
auto& button = m_task_button_container->add<TaskbarButton>(identifier);
- button.set_min_size(20, 22);
- button.set_max_size(140, 22);
+ button.set_min_size(20, 21);
+ button.set_max_size(140, 21);
button.set_text_alignment(Gfx::TextAlignment::CenterLeft);
button.set_icon(*m_default_icon);
return button;
@@ -315,7 +315,7 @@ void TaskbarWindow::wm_event(GUI::WMEvent& event)
case GUI::Event::WM_AppletAreaSizeChanged: {
auto& changed_event = static_cast<GUI::WMAppletAreaSizeChangedEvent&>(event);
m_applet_area_size = changed_event.size();
- m_applet_area_container->set_fixed_size(changed_event.size().width() + 8, 22);
+ m_applet_area_container->set_fixed_size(changed_event.size().width() + 8, 21);
update_applet_area();
break;
}