diff options
author | kobewi <kobewi4e@gmail.com> | 2023-04-16 12:06:45 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-04-17 22:55:27 +0200 |
commit | f462efd7f11c54c5113273055c788364ef65abb5 (patch) | |
tree | 36734c53cd7d6aa33ea6076ba1d9fde8aa8450ea | |
parent | 3db40355a0232bd8f22faa64f09a8b3c122106ff (diff) | |
download | redot-engine-f462efd7f11c54c5113273055c788364ef65abb5.tar.gz |
Add missing LineEdit constants in editor theme
-rw-r--r-- | editor/editor_themes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 43c5d1d6cd..5cd5ff05c5 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1446,7 +1446,10 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_color("selection_color", "LineEdit", selection_color); theme->set_color("clear_button_color", "LineEdit", font_color); theme->set_color("clear_button_color_pressed", "LineEdit", accent_color); + + theme->set_constant("minimum_character_width", "LineEdit", 4); theme->set_constant("outline_size", "LineEdit", 0); + theme->set_constant("caret_width", "LineEdit", 1); // TextEdit theme->set_stylebox("normal", "TextEdit", style_line_edit); @@ -1464,6 +1467,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_constant("line_spacing", "TextEdit", 4 * EDSCALE); theme->set_constant("outline_size", "TextEdit", 0); + theme->set_constant("caret_width", "TextEdit", 1); theme->set_icon("h_grabber", "SplitContainer", theme->get_icon(SNAME("GuiHsplitter"), SNAME("EditorIcons"))); theme->set_icon("v_grabber", "SplitContainer", theme->get_icon(SNAME("GuiVsplitter"), SNAME("EditorIcons"))); |