1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:47:45 +00:00

LibGUI: Use LightGray as the base UI color.

This feels nicely reminiscent of the gap in time between Win3.11 and Win95,
one of my favorite eras in UI look-and-feel.
This commit is contained in:
Andreas Kling 2019-02-04 11:51:42 +01:00
parent 6f787f6877
commit 7fe600f250
4 changed files with 5 additions and 2 deletions

View file

@ -33,6 +33,7 @@ private:
ClockWidget::ClockWidget(GWidget* parent)
: GWidget(parent)
{
set_font(Font::default_bold_font());
set_relative_rect({ 0, 0, 100, 40 });
start_timer(250);
}
@ -46,7 +47,7 @@ void ClockWidget::paint_event(GPaintEvent&)
sprintf(timeBuf, "%02u:%02u:%02u", tm.tm_hour, tm.tm_min, tm.tm_sec);
Painter painter(*this);
painter.fill_rect(rect(), Color::White);
painter.fill_rect(rect(), Color::LightGray);
painter.draw_text(rect(), timeBuf, Painter::TextAlignment::Center, Color::Black);
}