From f39f3543134ade65b24ab2aed0abf1e356a0d3df Mon Sep 17 00:00:00 2001 From: kobewi Date: Sun, 16 Apr 2023 12:06:45 +0200 Subject: Add missing LineEdit constants in editor theme (cherry picked from commit f462efd7f11c54c5113273055c788364ef65abb5) --- editor/editor_themes.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor') diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 178c1f175f..31668416ac 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1438,7 +1438,10 @@ Ref create_editor_theme(const Ref 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); @@ -1456,6 +1459,7 @@ Ref create_editor_theme(const Ref 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"))); -- cgit v1.2.3