summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-04 11:51:42 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-04 11:53:26 +0100
commit7fe600f2509f3fde59548de9e87d12539f176547 (patch)
treeffebf3e2e63fe8da2d1a365502f73d004c03a071
parent6f787f687708323e23bddc08bd892ad05892fafa (diff)
downloadserenity-7fe600f2509f3fde59548de9e87d12539f176547.zip
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.
-rw-r--r--LibGUI/GCheckBox.cpp1
-rw-r--r--LibGUI/GTextBox.cpp1
-rw-r--r--LibGUI/GWidget.cpp2
-rw-r--r--Userland/guitest2.cpp3
4 files changed, 5 insertions, 2 deletions
diff --git a/LibGUI/GCheckBox.cpp b/LibGUI/GCheckBox.cpp
index f767f9860e..c935e7c2b8 100644
--- a/LibGUI/GCheckBox.cpp
+++ b/LibGUI/GCheckBox.cpp
@@ -65,6 +65,7 @@ void GCheckBox::paint_event(GPaintEvent&)
2, height() / 2 - s_box_height / 2 - 1,
s_box_width, s_box_height
};
+ painter.fill_rect(box_rect, Color::White);
painter.draw_rect(box_rect, Color::Black);
if (m_being_modified) {
diff --git a/LibGUI/GTextBox.cpp b/LibGUI/GTextBox.cpp
index a04b1c9474..fb761fcdf1 100644
--- a/LibGUI/GTextBox.cpp
+++ b/LibGUI/GTextBox.cpp
@@ -8,6 +8,7 @@
GTextBox::GTextBox(GWidget* parent)
: GWidget(parent)
{
+ set_background_color(Color::White);
}
GTextBox::~GTextBox()
diff --git a/LibGUI/GWidget.cpp b/LibGUI/GWidget.cpp
index 2a4c2d419a..1c5d75c7af 100644
--- a/LibGUI/GWidget.cpp
+++ b/LibGUI/GWidget.cpp
@@ -10,7 +10,7 @@ GWidget::GWidget(GWidget* parent)
: GObject(parent)
{
set_font(nullptr);
- m_background_color = Color::White;
+ m_background_color = Color::LightGray;
m_foreground_color = Color::Black;
}
diff --git a/Userland/guitest2.cpp b/Userland/guitest2.cpp
index c177049483..444e0d5a0f 100644
--- a/Userland/guitest2.cpp
+++ b/Userland/guitest2.cpp
@@ -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);
}