diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-02-13 17:24:06 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-02-16 10:50:58 +0000 |
commit | 83da3c5c3e5a7a0bc605e88883a659950bf4ce78 (patch) | |
tree | 5fd8c71de41f508fcd964c8c66a8219b92a08a40 /Userland/Applications/PixelPaint/Tools/GradientTool.h | |
parent | 1ce2d7e6743d1fd200563e7c2e88258ef9d44131 (diff) | |
download | serenity-83da3c5c3e5a7a0bc605e88883a659950bf4ce78.zip |
PixelPaint: Add an option for making a Gradient with a secondary color
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/GradientTool.h')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/GradientTool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/GradientTool.h b/Userland/Applications/PixelPaint/Tools/GradientTool.h index 6e1b47a683..f9b2e4e9be 100644 --- a/Userland/Applications/PixelPaint/Tools/GradientTool.h +++ b/Userland/Applications/PixelPaint/Tools/GradientTool.h @@ -21,6 +21,7 @@ public: virtual bool on_keydown(GUI::KeyEvent&) override; virtual void on_keyup(GUI::KeyEvent&) override; virtual void on_primary_color_change(Color) override; + virtual void on_secondary_color_change(Color) override; virtual void on_tool_activation() override; virtual GUI::Widget* get_properties_widget() override; @@ -45,6 +46,7 @@ private: bool m_hover_over_start_handle = false; bool m_hover_over_end_handle = false; int m_opacity = 100; + bool m_use_secondary_color { false }; Gfx::FloatLine m_gradient_begin_line; Gfx::FloatLine m_gradient_center_line; Gfx::FloatLine m_gradient_end_line; |