mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +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
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/ftommasi 🔰
Commit: 813ca5ebbe
Pull-request: https://github.com/SerenityOS/serenity/pull/15579
Reviewed-by: https://github.com/davidot ✅
Reviewed-by: https://github.com/linusg
6 changed files with 40 additions and 18 deletions
|
@ -118,6 +118,8 @@ public:
|
|||
|
||||
Core::EventLoop& gui_event_loop() { return m_gui_event_loop; }
|
||||
|
||||
void set_editor_color_to_color_at_mouse_position(GUI::MouseEvent const& event, bool sample_all_layers);
|
||||
|
||||
private:
|
||||
explicit ImageEditor(NonnullRefPtr<Image>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue