mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibGUI: Add update() when changing widget color or palette
This commit is contained in:
parent
a2a3f5228a
commit
5b79d53c89
Notes:
sideshowbarker
2024-07-18 11:33:58 +09:00
Author: https://github.com/SpencerCDixon
Commit: 5b79d53c89
Pull-request: https://github.com/SerenityOS/serenity/pull/8234
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