mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
PixelPaint: Make tools use the new API for property change shortcuts
Every tool that has a slider now registers the primary/secondary sliders and now uses the same keyboard shortcuts to modify the primary and secondary properties. `[` and `]` for the primary, `{` and `}` for the secondary.
This commit is contained in:
parent
d28fb8926f
commit
280cbf2e18
Notes:
sideshowbarker
2024-07-18 04:48:22 +09:00
Author: https://github.com/mustafaquraish
Commit: 280cbf2e18
Pull-request: https://github.com/SerenityOS/serenity/pull/9774
Reviewed-by: https://github.com/AtkinsSJ ✅
10 changed files with 15 additions and 0 deletions
|
@ -206,6 +206,7 @@ GUI::Widget* GuideTool::get_properties_widget()
|
|||
snapping_slider.on_change = [&](int value) {
|
||||
m_snap_size = value;
|
||||
};
|
||||
set_primary_slider(&snapping_slider);
|
||||
}
|
||||
|
||||
return m_properties_widget.ptr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue