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:
parent
a2a3f5228a
commit
5b79d53c89
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue