2017-05-14, 07:06
Hi Marcel,
Can you please give me some clarification on the color picker service?
From my understanding, the script writes three skin strings.
The button id 3011 will set the value of the color to None, color.name to None, color.base to empty.
The wiki states https://github.com/marcelveldt/script.sk...olorpicker
"In your skin you can just use the skin string to color a control, example: $INFO[Skin.String(defaultLabelColor)]"
Initially i coded a variable and have 'highlight' in kodi's default.xml color folder as a fallback.
Then in a label;
So if a user clicks 'none' the string is not empty but set to 'none'. Which is not the behavior i expected. (although i can see that being useful as a way of turning off elements of a skin using the color picker)
To make it work the variable 'Highlight.Color' must be changed to 'Highlight.Color.base'
A couple of questions;
- Is this the intended way i should be using this? (its not clear in the wiki about the skin string with the extra '.base' at the end)
- Is the value 'None' language dependent? (so if a user were to use french for example the value would be 'aucun' instead)
Can you please give me some clarification on the color picker service?
From my understanding, the script writes three skin strings.
Code:
Skin.String(Color)
Skin.String(Color.base)
Skin.String(Color.name)
The button id 3011 will set the value of the color to None, color.name to None, color.base to empty.
The wiki states https://github.com/marcelveldt/script.sk...olorpicker
"In your skin you can just use the skin string to color a control, example: $INFO[Skin.String(defaultLabelColor)]"
Initially i coded a variable and have 'highlight' in kodi's default.xml color folder as a fallback.
Code:
<variable name="HighlightColorVar">
<value condition="!String.IsEmpty(Skin.String(Highlight.Color))">$INFO[Skin.String(Highlight.Color)]</value>
<value>highlight</value>
</variable>
Then in a label;
Code:
<textcolor>$VAR[HighlightColorVar]</textcolor>
So if a user clicks 'none' the string is not empty but set to 'none'. Which is not the behavior i expected. (although i can see that being useful as a way of turning off elements of a skin using the color picker)
To make it work the variable 'Highlight.Color' must be changed to 'Highlight.Color.base'
A couple of questions;
- Is this the intended way i should be using this? (its not clear in the wiki about the skin string with the extra '.base' at the end)
- Is the value 'None' language dependent? (so if a user were to use french for example the value would be 'aucun' instead)