Fix ColorPicker color and hsv sync issue

ColorPicker has both a Color and HSV values for the currently selected
color, fixed a few cases where those were not kept in sync.

Refactored a little regarding this, and removed a redundant update.

Solves #63777
This commit is contained in:
Johan Aires Rastén
2022-08-01 22:54:33 +02:00
parent 8243c7ab5d
commit 26ebea7286
2 changed files with 38 additions and 34 deletions

View File

@ -156,6 +156,9 @@ private:
float v = 0.0;
Color last_color;
void _copy_color_to_hsv();
void _copy_hsv_to_color();
PickerShapeType _get_actual_shape() const;
void create_slider(GridContainer *gc, int idx);
void _reset_theme();