diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 23b5bb2c7bd..4d90c8a367e 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -966,9 +966,9 @@ bool ColorPicker::is_deferred_mode() const { void ColorPicker::_update_text_value() { bool text_visible = true; if (text_is_constructor) { - String t = "Color(" + String::num(color.r) + ", " + String::num(color.g) + ", " + String::num(color.b); + String t = "Color(" + String::num(color.r, 3) + ", " + String::num(color.g, 3) + ", " + String::num(color.b, 3); if (edit_alpha && color.a < 1) { - t += ", " + String::num(color.a) + ")"; + t += ", " + String::num(color.a, 3) + ")"; } else { t += ")"; }