1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibGUI: Add update() when changing widget color or palette

This commit is contained in:
Spencer Dixon 2021-06-24 09:10:40 -04:00 committed by Andreas Kling
parent a2a3f5228a
commit 5b79d53c89

View file

@ -891,16 +891,19 @@ Vector<Widget&> Widget::child_widgets() const
void Widget::set_palette(const Palette& palette)
{
m_palette = palette.impl();
update();
}
void Widget::set_background_role(ColorRole role)
{
m_background_role = role;
update();
}
void Widget::set_foreground_role(ColorRole role)
{
m_foreground_role = role;
update();
}
Gfx::Palette Widget::palette() const