mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibGUI: Transfer "color has alpha channel" state
This commit is contained in:
parent
51df4bdbfc
commit
f8069418e1
4 changed files with 8 additions and 17 deletions
|
@ -40,6 +40,8 @@ class ColorPicker final : public Dialog {
|
|||
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; }
|
||||
Color color() const { return m_color; }
|
||||
|
||||
private:
|
||||
|
@ -52,6 +54,7 @@ private:
|
|||
void create_color_button(Widget& container, unsigned rgb);
|
||||
|
||||
Color m_color;
|
||||
bool m_color_has_alpha_channel { true };
|
||||
|
||||
Vector<ColorButton*> m_color_widgets;
|
||||
RefPtr<CustomColorWidget> m_custom_color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue