From 5b79d53c893315f489c352b627071f5bd4c8dd36 Mon Sep 17 00:00:00 2001 From: Spencer Dixon Date: Thu, 24 Jun 2021 09:10:40 -0400 Subject: [PATCH] LibGUI: Add update() when changing widget color or palette --- Userland/Libraries/LibGUI/Widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibGUI/Widget.cpp b/Userland/Libraries/LibGUI/Widget.cpp index 2b91f686d9..43627d5f1f 100644 --- a/Userland/Libraries/LibGUI/Widget.cpp +++ b/Userland/Libraries/LibGUI/Widget.cpp @@ -891,16 +891,19 @@ Vector 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