diff options
author | kobewi <kobewi4e@gmail.com> | 2022-11-02 15:34:15 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-11-02 15:34:15 +0100 |
commit | 84d6549c75abe27232d40f973f25a3cc2bad0078 (patch) | |
tree | da82c48399a0ec08a30024141b3837a7b5a18a16 /scene/gui | |
parent | f5981ff19dfa98ac2252900ce63d3ae6a2f0c003 (diff) |
Change hue icons to horizontal GradientTexture2D
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/color_mode.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scene/gui/color_mode.cpp b/scene/gui/color_mode.cpp index aaba7901e4..308fe057c5 100644 --- a/scene/gui/color_mode.cpp +++ b/scene/gui/color_mode.cpp @@ -158,8 +158,7 @@ void ColorModeHSV::slider_draw(int p_which) { right_color.a = 1; } else if (p_which == 0) { Ref<Texture2D> hue = color_picker->get_theme_icon(SNAME("color_hue"), SNAME("ColorPicker")); - slider->draw_set_transform(Point2(), -Math_PI / 2, Size2(1.0, 1.0)); - slider->draw_texture_rect(hue, Rect2(Vector2(margin * -1, 0), Vector2(margin, size.x)), false); + slider->draw_texture_rect(hue, Rect2(Vector2(), Vector2(size.x, margin)), false); return; } else { Color s_col; @@ -290,8 +289,7 @@ void ColorModeOKHSL::slider_draw(int p_which) { if (p_which == 0) { // H Ref<Texture2D> hue = color_picker->get_theme_icon(SNAME("color_okhsl_hue"), SNAME("ColorPicker")); - slider->draw_set_transform(Point2(), -Math_PI / 2, Size2(1.0, 1.0)); - slider->draw_texture_rect(hue, Rect2(Vector2(margin * -1, 0), Vector2(margin, size.x)), false); + slider->draw_texture_rect(hue, Rect2(Vector2(), Vector2(size.x, margin)), false); return; } |