Kodi Community Forum

Full Version: Fake autosizing buttons and <disabledcolor>
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to show <disabledcolor> when using the fake autosizing button technique?
If you tell us what the "fake autosizing button" technique looks like, we might be able to help.
Where you have a set of horizontal buttons hidden then use a grouplist of labels referencing those buttons so they can use the autosize feature of labels to keep the spacing the same between them...

.xml example

Line 630 is the group of buttons
Line 711 is the grouplist of labels
You can e.g. use an animation for the labels and fade them if a button is disabled:

PHP Code:
<animation effect="fade" end="50" time="0" condition="!Control.IsEnabled(id)">Conditional</animation
Control.IsEnabled(id), THX...
Or hide the button altogether with
Code:
Control.IsEnabled(id)
if it's not enabled and then the labels using
Code:
Control.IsVisible(id)
.