mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:37:47 +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:
parent
6f787f6877
commit
7fe600f250
4 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue