1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00

WindowServer: Reverse the menu background colors

Let's try putting the warm gray under the icons/checkboxes. This makes
the checkboxes look more natural.
This commit is contained in:
Andreas Kling 2019-08-27 13:24:05 +02:00
parent d3c21163a5
commit 9a80554943

View file

@ -116,7 +116,7 @@ void WSMenu::draw()
Painter painter(*menu_window()->backing_store());
Rect rect { {}, menu_window()->size() };
painter.fill_rect(rect.shrunken(6, 6), Color::WarmGray);
painter.fill_rect(rect.shrunken(6, 6), Color::White);
StylePainter::paint_window_frame(painter, rect);
int width = this->width();
@ -131,7 +131,7 @@ void WSMenu::draw()
}
Rect stripe_rect { frame_thickness(), frame_thickness(), s_stripe_width, height() - frame_thickness() * 2 };
painter.fill_rect(stripe_rect, Color::from_rgb(0xffffff));
painter.fill_rect(stripe_rect, Color::WarmGray);
painter.draw_line(stripe_rect.top_right(), stripe_rect.bottom_right(), Color::from_rgb(0xbbb7b0));
for (auto& item : m_items) {