mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibGUI: Don't fill widgets with background color by defualt.
This commit is contained in:
parent
6836e21d1c
commit
5d69bf06d2
14 changed files with 12 additions and 16 deletions
|
@ -7,7 +7,6 @@
|
|||
GButton::GButton(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
{
|
||||
set_fill_with_background_color(false);
|
||||
}
|
||||
|
||||
GButton::~GButton()
|
||||
|
|
|
@ -7,6 +7,12 @@ GLabel::GLabel(GWidget* parent)
|
|||
{
|
||||
}
|
||||
|
||||
GLabel::GLabel(const String& text, GWidget* parent)
|
||||
: GWidget(parent)
|
||||
, m_text(text)
|
||||
{
|
||||
}
|
||||
|
||||
GLabel::~GLabel()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ class GraphicsBitmap;
|
|||
class GLabel final : public GWidget {
|
||||
public:
|
||||
explicit GLabel(GWidget* parent);
|
||||
GLabel(const String& text, GWidget* parent);
|
||||
virtual ~GLabel() override;
|
||||
|
||||
String text() const { return m_text; }
|
||||
|
|
|
@ -13,7 +13,6 @@ GStatusBar::GStatusBar(GWidget* parent)
|
|||
layout()->set_margins({ 4, 2, 4, 2 });
|
||||
m_label = new GLabel(this);
|
||||
m_label->set_text_alignment(TextAlignment::CenterLeft);
|
||||
m_label->set_fill_with_background_color(false);
|
||||
}
|
||||
|
||||
GStatusBar::~GStatusBar()
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
GTableView::GTableView(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
{
|
||||
set_fill_with_background_color(false);
|
||||
|
||||
m_vertical_scrollbar = new GScrollBar(Orientation::Vertical, this);
|
||||
m_vertical_scrollbar->set_step(4);
|
||||
m_vertical_scrollbar->on_change = [this] (int) {
|
||||
|
|
|
@ -14,8 +14,6 @@ GTextEditor::GTextEditor(GWidget* parent)
|
|||
{
|
||||
set_font(GFontDatabase::the().get_by_name("Csilla Thin"));
|
||||
|
||||
set_fill_with_background_color(false);
|
||||
|
||||
m_vertical_scrollbar = new GScrollBar(Orientation::Vertical, this);
|
||||
m_vertical_scrollbar->set_step(4);
|
||||
m_vertical_scrollbar->on_change = [this] (int) {
|
||||
|
|
|
@ -46,7 +46,6 @@ public:
|
|||
SeparatorWidget(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
{
|
||||
set_fill_with_background_color(false);
|
||||
set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
|
||||
set_background_color(Color::White);
|
||||
set_preferred_size({ 8, 20 });
|
||||
|
|
|
@ -140,5 +140,5 @@ private:
|
|||
SizePolicy m_vertical_size_policy { SizePolicy::Fill };
|
||||
Size m_preferred_size;
|
||||
|
||||
bool m_fill_with_background_color { true };
|
||||
bool m_fill_with_background_color { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue