mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibGUI: Update color widgets when has_alpha is toggled in ColorPicker
Fixing a bug where the alpha spinbox wasn't immediately disabled when color_has_alpha_channel was set to false.
This commit is contained in:
parent
01915a3027
commit
8b293119ab
2 changed files with 10 additions and 1 deletions
|
@ -42,7 +42,7 @@ public:
|
|||
virtual ~ColorPicker() override;
|
||||
|
||||
bool color_has_alpha_channel() const { return m_color_has_alpha_channel; }
|
||||
void set_color_has_alpha_channel(bool has_alpha) { m_color_has_alpha_channel = has_alpha; }
|
||||
void set_color_has_alpha_channel(bool);
|
||||
Color color() const { return m_color; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue