Add ColorPicker cursor background and reuse the cursor for wheel.

Add a cursor's background to fill the picker cursor.
Unhardcode the wheel radius.
Reuse the picker cursor image for the HSV wheel.
This commit is contained in:
WhalesState
2025-01-10 09:55:54 +02:00
parent 24d74510e5
commit 2eded468f9
9 changed files with 59 additions and 72 deletions

View File

@ -127,6 +127,7 @@ private:
int current_slider_count = SLIDER_COUNT;
static const int MODE_BUTTON_COUNT = 3;
const float WHEEL_RADIUS = 0.42;
bool slider_theme_modified = true;
@ -263,6 +264,7 @@ private:
Ref<Texture2D> sample_revert;
Ref<Texture2D> overbright_indicator;
Ref<Texture2D> picker_cursor;
Ref<Texture2D> picker_cursor_bg;
Ref<Texture2D> color_hue;
/* Mode buttons */