[Themes] Add a way to style focused input field
Problem description
Themes authors may be interested in highlighting an active input field, so that it is easier to spot.
Preferred solution
Add a focused attribute for text_line_control
With build 4095, can I change the borders color of a text line controls when it's focused ?
I did implement it in text line controls also in the default themes. I'm not as convinced about that implementation, so that may be tweaked a little in the future.
That comment from https://github.com/sublimehq/sublime_text/issues/2041#issuecomment-765531886 sounds like as it should already work. Also see it working with Default theme.
Just see, what you mean.
The text_line_control would need to receive highlighted as well. I guess that's required for DAneo, too.
text_line_control [file_medium_dark] pos: 242,1002 size: 1558,34
.content_margin=[8, 6, 8, 6]
.layer0.inner_margin=[6, 6, 6, 6]
.layer0.opacity=1
.layer0.texture=res://Packages/Theme - DAneo/textures/inputs/input--bw0--br2.png
.layer0.tint=[17, 21, 27, 255]
control pos: 250,1008 size: 1542,22
scroll_area_control pos: 250,1008 size: 1522,22
.overlay=true
control pos: 250,1008 size: 1522,22
text_area_control [file_medium_dark, highlighted] pos: 250,1008 size: 1522,22
Is there any workaround for this issue in a recent build? Specifically, I need to change layer0.texture of text_line_control when the field is focused.
Is there another way to make a text field have a focus indicator so I can conform my theme to WCAG accessibility guidelines? text_area_control doesn't seem to allow a texture.
Situation hasn't changed, yet.