summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}