How to set Focus style in Lemur Stylesheet

Does anyone know how to set the focus style in a Lemur stylesheet?

What do you mean by “focus style”?

A styling specific for when the control has focus. Mostly colors and background. But there seems te be something with the margins or alignment too in my case.

Like :focus in css…

The focus styling is very limited at the moment. Edit fields will show focus because the cursor shows up. Buttons will show focus based on their “focusColor” and “focusShadowColor” styling.

You can customize the look beyond that by adding focus listeners… but not through styling, unfortunately. Buttons allow you to set a focus listener through styling but none of the other elements do.

That being said, buttons are one of two ‘focusable’ GUI elements in the built-in elements… so setting their focus styling probably covers most cases.

1 Like

Too bad. Tnx

Well, as said, there are only two focusable components:
Edit fields
Buttons

90% of the focusable elements of a particular UI are going to be buttons. And buttons have many ways to set the focus through styling… similar to how press/release can move the button, you can hook commands to focus gained/lost in styling. (Focus gain/loss is also a triggered effect and I think those can be set through styling also.)