1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:57:35 +00:00

LibGUI: Mass coding style fixes.

This commit is contained in:
Andreas Kling 2019-01-21 00:46:08 +01:00
parent 6c4f1bad09
commit d66b0f7dd8
15 changed files with 178 additions and 178 deletions

View file

@ -10,7 +10,7 @@ GLabel::~GLabel()
{
}
void GLabel::setText(String&& text)
void GLabel::set_text(String&& text)
{
if (text == m_text)
return;
@ -18,11 +18,11 @@ void GLabel::setText(String&& text)
update();
}
void GLabel::paintEvent(GPaintEvent&)
void GLabel::paint_event(GPaintEvent&)
{
Painter painter(*this);
if (fillWithBackgroundColor())
painter.fill_rect({ 0, 0, width(), height() }, backgroundColor());
if (fill_with_background_color())
painter.fill_rect({ 0, 0, width(), height() }, background_color());
if (!text().is_empty())
painter.draw_text({ 4, 4, width(), height() }, text(), Painter::TextAlignment::TopLeft, foregroundColor());
painter.draw_text({ 4, 4, width(), height() }, text(), Painter::TextAlignment::TopLeft, foreground_color());
}