Kodi Community Forum

Full Version: colorpicker
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to use colorpicker from settings to get the color? i.e.

<setting id="custom_color" type="action" label="color1" action="RunScript(script.skin.helper.service,action=colorpicker,,winproperty=XXX)"/>

it opens the colorpicker window, but how to get the result in settings? this can work only from skin, right?
Still looking a answer? Can you explain more of what your trying to do. And yes it has to be added into the skin .xml
I'm trying to have color setting for addon. I can make user enter i.e. text - HEX code, but it would be uch more user friendly to allow color picker.
O..Yeah I am just trying to learn Python .... I could help on the skin side it is easy. But I am sure you already know that... Could you do something like



PHP Code:
xbmc.executebuiltin("RunScript(script.skin.helper.colorpicker,skinstring=MyColor)"

then have your addon use it as a variable
PHP Code:
MyCustom        xbmc.getInfoLabel("Skin.String(MyColor)"