Tweak Tool Color Mode Saturation and Opacity Channels Don't Work Properly
Summary:
The color mode of the tweak tool lets the user to tweak the colours of the objects towards a target colour. When the color mode is active there are four buttons to determine what channels are allowed to be changed. Opacity never changes with the tweak tool and deselecting the S channel button doesn't keep the HSL saturation value fixed.
Steps to reproduce:
- Open the attached SVG file.
- On the left there are rectangles with a fill color H:0, S:25: L:25), both the master opacity and the fill opacity are 100%
- Activate the tweak tool and the color mode in it. Assign the tool's fill colour as (H:240, S:100, L:50) and the alpha as 50%
- Channels H, L and O must be active but S must be deactive.
- Select alt the rectangles, adjust the tweak tool width to cover all the rectangles, bring the cursor to the centre of the grid created by objects and color tweak with small mouse movements.
What happened?
- The rectangles on the right in the attached file shows the result. The hue and light values tried to reach 240 and 50 respectively as expected but the saturation value did not stay at 25. For some rectangles it increased and for some it decreased.
- The opacity of the rectangles are not impacted.
What should have happened?
- The saturation value of the rectangles should have stayed fixed at 25.
- There are two possibilities about the opacity.
- The opacity should have changed as the alpha value of the tool style colour is 50%. If that's the intention it doesn't happen.
- The opacity depends on the master opacity. In this case because of another bug (#6957 (moved)) the button is not useful because if one changes the master opacity of the tool style both fill and stroke style becomes unset.
Sample attachments:
Version info
Windows 8.1 Pro x64 Inkscape v1.1, v1.1.2, v1.2alpha
Edited by Gökhan Keskin