1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

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..
This commit is contained in:
Andreas Kling 2021-05-09 00:07:44 +02:00
parent fbe6c275c9
commit 9d8aa2a57a
5 changed files with 9 additions and 9 deletions

View file

@ -101,7 +101,7 @@ void AppletManager::add_applet(Window& applet)
void AppletManager::relayout()
{
constexpr int applet_spacing = 4;
constexpr int applet_window_height = 20;
constexpr int applet_window_height = 19;
int total_width = 0;
for (auto& existing_applet : m_applets) {
total_width += max(0, existing_applet->size().width()) + applet_spacing;