summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-26 20:53:33 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-26 20:53:33 +0200
commit0f48e3b007ec1637dc56f0006c6e98302d1edc89 (patch)
tree814c335de380640baaa773f53f367420066f7260 /Servers/WindowServer
parent11bb88f513fa118c78961f83e3bc2d26570cb89f (diff)
downloadserenity-0f48e3b007ec1637dc56f0006c6e98302d1edc89.zip
WindowServer: Align menu separators correctly
These were off by one vertically, oops!
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r--Servers/WindowServer/WSMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/WindowServer/WSMenu.cpp b/Servers/WindowServer/WSMenu.cpp
index c7aa288639..2dd46c111d 100644
--- a/Servers/WindowServer/WSMenu.cpp
+++ b/Servers/WindowServer/WSMenu.cpp
@@ -164,8 +164,8 @@ void WSMenu::draw()
painter.draw_text(item.rect().translated(-right_padding(), 0), item.shortcut_text(), TextAlignment::CenterRight, text_color);
}
} else if (item.type() == WSMenuItem::Separator) {
- Point p1(item.rect().translated(stripe_rect.width() + 4, 0).x(), item.rect().center().y());
- Point p2(width - 7, item.rect().center().y());
+ Point p1(item.rect().translated(stripe_rect.width() + 4, 0).x(), item.rect().center().y() - 1);
+ Point p2(width - 7, item.rect().center().y() - 1);
painter.draw_line(p1, p2, Color::MidGray);
painter.draw_line(p1.translated(0, 1), p2.translated(0, 1), Color::White);
}