ImGui: style disabled item

While there is a general alpha setting for disabled items I cannot find a way to style more properties like the background color of a button.

Have you seen the “HowTo Style a Checkbox or a RadioButton” example?

Also, i would recommend you to get familiar with ImGui styling, taking a look to “Build-In Style Editor” example.

Some style option names are not very intuitive and others are applicable to many widgets.

Yes I have also looked into the original library. For text Widgets which have a disabled pin, there is a Disabled Option for the style, but if you use the Disabled region then I am not sure how to set the style.

When the disabled region is active, it changes the alpha of any widget inside it.
I don’t see any way to add a global disabled Style, just the alpha using “SetAlphaStyle”.
Note that “Text” has its own disabled color.

I ended up using the LayerWidget with IsItemClicked, as it is a Skia element it is much easier to style.