mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Merge pull request #111230 from GabCoolDude/color_picker_tooltip_fix
Fix color text's tooltip not being updated when the intensity is more than 0
This commit is contained in:
@@ -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\")."));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user