From 3265e08f159a4f16225a2d2e8b530a503a87f025 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Fri, 25 Oct 2024 00:29:03 -0400 Subject: [PATCH] Fix `ColorPicker` overbright indicator position (cherry picked from commit blazium-engine/blazium@f7c6762df94867d93465612ec6be86b28593dc47) Co-authored-by: Mounir Tohami <53877170+WhalesState@users.noreply.github.com> --- scene/gui/color_picker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index d4e40e284f5..c29466ae91e 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -1126,7 +1126,7 @@ void ColorPicker::_sample_draw() { if (color.r > 1 || color.g > 1 || color.b > 1) { // Draw an indicator to denote that the new color is "overbright" and can't be displayed accurately in the preview. - sample->draw_texture(theme_cache.overbright_indicator, Point2(uv_edit->get_size().width * 0.5, 0)); + sample->draw_texture(theme_cache.overbright_indicator, Point2(display_old_color ? sample->get_size().width * 0.5 : 0, 0)); } }