Kodi Community Forum
Fake autosizing buttons and <disabledcolor> - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Fake autosizing buttons and <disabledcolor> (/showthread.php?tid=154709)



Fake autosizing buttons and <disabledcolor> - mcborzu - 2013-02-04

Is there a way to show <disabledcolor> when using the fake autosizing button technique?


RE: Fake autosizing buttons and <disabledcolor> - `Black - 2013-02-04

If you tell us what the "fake autosizing button" technique looks like, we might be able to help.


RE: Fake autosizing buttons and <disabledcolor> - mcborzu - 2013-02-04

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


RE: Fake autosizing buttons and <disabledcolor> - `Black - 2013-02-04

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



RE: Fake autosizing buttons and <disabledcolor> - mcborzu - 2013-02-04

Control.IsEnabled(id), THX...


RE: Fake autosizing buttons and <disabledcolor> - Hitcher - 2013-02-04

Or hide the button altogether with
Code:
Control.IsEnabled(id)
if it's not enabled and then the labels using
Code:
Control.IsVisible(id)
.