mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
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:
parent
24d74510e5
commit
2eded468f9
9 changed files with 59 additions and 72 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue