diff options
author | reduz <reduzio@gmail.com> | 2021-02-12 11:05:10 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2021-02-12 17:04:38 +0100 |
commit | 28537d8c84a03bf88e99f3cae0ca5ded0fc95df6 (patch) | |
tree | cdb7b5a85d71a3cafb890ef261783c19670ff43b /scene/resources | |
parent | 5e528f35505ba946cbda5f7c1fc800ed578b52dc (diff) | |
download | redot-engine-28537d8c84a03bf88e99f3cae0ca5ded0fc95df6.tar.gz |
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.
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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> &theme, const Ref<Font> &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)); |