1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibGUI/Widget: Add helpers to set the background color

This commit is contained in:
david072 2023-11-11 13:38:35 +01:00 committed by Andreas Kling
parent e4019ba9dc
commit 999a44969d
2 changed files with 25 additions and 9 deletions

View file

@ -254,6 +254,9 @@ public:
Gfx::ColorRole foreground_role() const { return m_foreground_role; }
void set_foreground_role(Gfx::ColorRole);
bool set_background_color(String);
void set_background_color(Gfx::Color);
void set_autofill(bool b) { set_fill_with_background_color(b); }
Window* window()