diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-01-13 09:21:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 09:21:01 +0100 |
commit | f6792eacf58fcdfe40596980220fefe1ca2a93fc (patch) | |
tree | d0e2435baf1b7cc860e3d995efb34f833454af2b /scene/resources | |
parent | 2d72dadbdefaa5e1bd74fce0e77c494a94fac599 (diff) | |
parent | f6443beade093a1413e87c53fb9821e5e25c859f (diff) |
Merge pull request #54956 from Calinou/lineedit-textedit-add-caret-width-theme-item
Add a theme constant to change LineEdit and TextEdit's caret width
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 93c7eb43a1..9c76d74fbd 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -407,6 +407,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const theme->set_constant("minimum_character_width", "LineEdit", 4); theme->set_constant("outline_size", "LineEdit", 0); + theme->set_constant("caret_width", "LineEdit", 1); theme->set_icon("clear", "LineEdit", make_icon(line_edit_clear_png)); @@ -451,6 +452,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const theme->set_constant("line_spacing", "TextEdit", 4 * scale); theme->set_constant("outline_size", "TextEdit", 0); + theme->set_constant("caret_width", "TextEdit", 1); // CodeEdit |