Bug 505110

Summary: Colourise tool key strokes swatch size resets on change
Product: [Applications] krita Reporter: Alexandre Brault <alex+kde>
Component: Tools/ColorizeAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal CC: alex+kde, giga-zoddom
Priority: NOR    
Version First Reported In: 5.2.9   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Keystrokes zoom out on change

Description Alexandre Brault 2025-06-02 02:41:24 UTC
SUMMARY
The key strokes swatch can be zoomed in with ctrl+wheel, but if the swatch is modified (by adding or removing a colour, or making one transparent), it resets to the default 16 columns. Zooming the swatch anew zooms from the previous value, so this appears to be an error on the UI side

STEPS TO REPRODUCE
1. Create a colourise mask layer
2. Paint with a few colours to fill the swatch
3. Increase the swatch size with Ctrl+scroll
4. Modify the swatch by painting with a new colour, removing a colour from the swatch or making one transparent

OBSERVED RESULT
The key stroke swatch resets to 16 columns

EXPECTED RESULT
The key stroke swatch retains its zoom


SOFTWARE/OS VERSIONS
Windows: 10.0.26100 Build 26100 (Windows 11 24H2)

Qt Version: 5.15.7

ADDITIONAL INFORMATION
Comment 1 Lukas 2025-06-23 17:07:03 UTC
Hey Alexandre, Im having trouble following your steps. Can you please specify what you mean by "swatch"? Also, there is no default key binding with ctrl+mousewheel, did u manually add that by chance? If so, please specify which exact hotkey command you have bound this to. Thank you!
Comment 2 Alexandre Brault 2025-06-23 18:09:28 UTC
Created attachment 182571 [details]
Keystrokes zoom out on change

The Key Strokes palette in the Colourise Mask Tool options. It's not a bound hot key, the zooming is hardcoded in the tool 

https://invent.kde.org/graphics/krita/-/blob/master/plugins/tools/tool_lazybrush/kis_tool_lazy_brush_options_widget.cpp#L52-62
Comment 3 Bug Janitor Service 2025-06-24 03:47:50 UTC
๐Ÿ›๐Ÿงน Thanks for your comment!

Automatically switching the status to REPORTED so the team can perform further triage.

In the future you may also do this yourself when providing needed information.