Problem summary
Color Picker dialog HSV fields no longer accept numerical inputs
Editing the HSV values by typing and executing/typing and pressing TAB/CTRL+dragging the value all have no effect on the sliders and resulting color swatch.
This issue affects both the Select Color dialog and the Colors palette.
Customer reported version
Mari 5.0v3
Customer reported platform
Multiple
Steps to reproduce
1) Open the Select Color dialog by clicking the Foreground color swatch
2) Expand the window so that the sliders are visible
3) Click the V field and change the value to '50' (this bug also occurs with the H and V fields)
4) Press the Return/Enter key or click 'Ok' to close the dialog
5) Open the Select Color dialog for the Foreground color again and inspect the V field
Expected behaviour
The color value (V field) should now be set to 50.0%
Actual behaviour
The field resets to its original value:
Workaround
The following snippet can be used to set the Foreground color swatch using numeric HSV values:
# Create new color with normalised values
foreground = mari.colors.foreground()
foreground.setHSV(new_hue/360.0,new_saturation/100.0,new_value/100.0)
# Set as foreground color
mari.colors.setForeground(foreground)
Reproduced by support
This bug has been reproduced in:
Mari 5.0v3 - Windows 10 - CentOS 7.8
Mari 4.8v3 - Windows 10
Mari 4.7v7 - Windows 10 - CentOS 7.8 - regression
Unable to reproduce bug in:
Mari 5.0v2 - Windows 10
Mari 4.8v2 - Windows 10 - CentOS 7.8
Mari 4.7v6 - Windows 10 - CentOS 7.8
Earliest version tested
Mari 4.7v6 - This issue doesn't appear in this version and has regressed