mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
PixelPaint: Make Alt-Clicking with all tool act like the PickerTool
Refactored PickerTool functionality to the ImageEditor level and added a flag to Tool Base Class to allow for tools to override Alt+Click ColorPicker functionality
This commit is contained in:
parent
66c039c66f
commit
813ca5ebbe
6 changed files with 40 additions and 18 deletions
|
@ -28,6 +28,8 @@ public:
|
|||
|
||||
void draw_using(GUI::Painter&, Gfx::IntPoint const& start_position, Gfx::IntPoint const& end_position, Color color, int thickness);
|
||||
|
||||
virtual bool is_overriding_alt() override { return true; }
|
||||
|
||||
private:
|
||||
virtual StringView tool_name() const override { return "Line Tool"sv; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue