From f6443beade093a1413e87c53fb9821e5e25c859f Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 13 Nov 2021 23:06:47 +0100 Subject: Add a theme constant to change LineEdit and TextEdit's caret width This can be useful to improve caret visibility, especially at larger font sizes. This can also be used for accessibility purposes. --- doc/classes/LineEdit.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/classes/LineEdit.xml') diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml index c3e3088d69..f9a5d76c80 100644 --- a/doc/classes/LineEdit.xml +++ b/doc/classes/LineEdit.xml @@ -383,7 +383,7 @@ - Color of the [LineEdit]'s caret (text cursor). + Color of the [LineEdit]'s caret (text cursor). This can be set to a fully transparent color to hide the caret entirely. Color used as default tint for the clear button. @@ -406,6 +406,9 @@ Color of the selection rectangle. + + The caret's width in pixels. Greater values can be used to improve accessibility by ensuring the caret is easily visible, or to ensure consistency with a large font size. + Minimum horizontal space for the text (not counting the clear button and content margins). This value is measured in count of 'M' characters (i.e. this amount of 'M' characters can be displayed without scrolling). -- cgit v1.2.3