From 28537d8c84a03bf88e99f3cae0ca5ded0fc95df6 Mon Sep 17 00:00:00 2001 From: reduz Date: Fri, 12 Feb 2021 11:05:10 -0300 Subject: Fix LineEdit minimum width -Changed theme setting name to make more sense of what it does -Reduced amount of minimum characters, so minimum size is smaller. --- scene/resources/default_theme/default_theme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/resources') diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 31bc00e528..e66de82ed9 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -394,7 +394,7 @@ void fill_default_theme(Ref &theme, const Ref &default_font, const theme->set_color("clear_button_color", "LineEdit", control_font_color); theme->set_color("clear_button_color_pressed", "LineEdit", control_font_pressed_color); - theme->set_constant("minimum_spaces", "LineEdit", 12 * scale); + theme->set_constant("minimum_character_width", "LineEdit", 4); theme->set_icon("clear", "LineEdit", make_icon(line_edit_clear_png)); -- cgit v1.2.3