From f39465684437b41f16b8d45e6be8a06842f9b4f1 Mon Sep 17 00:00:00 2001 From: GabCoolDude Date: Fri, 3 Oct 2025 23:33:47 +0200 Subject: [PATCH] Fix color text's tooltip not being updated when the intensity is more than 0 Before, the tooltip would only change when pressing the "#" button in the editor, but it would never change at runtime or in the editor when changing the intensity --- scene/gui/color_picker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 3034c5f2c76..041827bab0d 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -1425,12 +1425,14 @@ void ColorPicker::_update_text_value() { text_type->set_disabled(!is_color_valid_hex(color)); hex_label->set_text(ETR("Expr")); c_text->set_text(t); + c_text->set_tooltip_text(RTR("Execute an expression as a color.")); } else { text_type->set_text("#"); text_type->set_button_icon(nullptr); text_type->set_disabled(false); hex_label->set_text(ETR("Hex")); c_text->set_text(color.to_html(edit_alpha && color.a < 1)); + c_text->set_tooltip_text(ETR("Enter a hex code (\"#ff0000\") or named color (\"red\").")); } }