Color picker?
#1
http://forum.kodi.tv/showthread.php?tid=116132
something like this (or simpler) is available?
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#2
weird that no one bulilt that... very usefull for skinner...

anyone knows if any skins has somthing simillar? I don't want to spend hours building when someone already did
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#3
Does the one you linked not work?
Reply
#4
Mmm I had a problem that after I pick color
And press ok the addon settings window pops up,
Couldnt solve it. Also saw that is very old addon and though that some skilled skinner created a better one.

I tought building myself,
maybe create some grouplist with about 200 buttons with white texture
and use the colordiffuse option for every single one.
But too many things to setup, different onclicks ,colordiffuse
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#5
There's definitely a recent skin that's using a colour picker but I can't remember which one.
Reply
#6
Aeon MQ has one, but quite simple...
http://i.imgur.com/bO28Qtj.jpg
looking for a better one..
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#7
Mimic also has a basic one that I adapted from im85288's mod of Arctic Zephyr.
Reply
#8
oh I see
http://forum.kodi.tv/showthread.php?tid=...pid1979419

Well done..
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#9
OK Braz, I used your code if its ok.... my result:
Image
I need to arrange the icons, but the idea is lines of "10" with the same color family.

I wanted to give you some advise If you want,
In your code you make every item like:
Code:
<item id="1">
    <onclick condition="!IsEmpty(Window(home).Property(highlightselect))">Skin.SetString(highlightcolor.name,FF93ce5f)</onclick>
    <onclick condition="!IsEmpty(Window(home).Property(backgroundselect))">Skin.SetString(backgroundcolor.name,FF93ce5f)</onclick>
    <onclick condition="!IsEmpty(Window(home).Property(dialogselect))">Skin.SetString(dialogcolor.name,FF93ce5f)</onclick>
    <onclick condition="!IsEmpty(Window(home).Property(textselect))">Skin.SetString(textcolor.name,FF93ce5f)</onclick>
    <onclick>Close</onclick>
    <thumb>colors/FF93ce5f.png</thumb>
    <label>FF93ce5f</label>
</item>

Because you use it to define 4 different colors, but you could make it more global color picker, by using String, like this:
Code:
<item id="1">
    <onclick>Skin.SetString($INFO[Skin.String(color_picker)],FF93ce5f)</onclick>
    <thumb>colors/FF93ce5f.png</thumb>
    <label>FF93ce5f</label>
</item>
and in your skinsetting.xml use this:
Code:
<onclick>Skin.SetString(color_picker,main_color)</onclick>
<onclick>ActivateWindow(1130)</onclick>

Also removed the "Close" action from onclick, it is better to see "live changes" and then hit "OK" when finish
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#10
that addon isn't in our repo right or is the colorpicker now in some other addon?
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#11
the addon in the first post is not availeble by any repo, but I found it in google
http://kodi-passion.fr/addons/?Page=View...lor.picker
actually now I prefer the new stuff posted earlier :]
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#12
(2015-07-15, 23:15)tomer953 Wrote: OK Braz, I used your code if its ok.... my result:
Image
I need to arrange the icons, but the idea is lines of "10" with the same color family.

I wanted to give you some advise If you want,
In your code you make every item like:
Code:
<item id="1">
    <onclick condition="!IsEmpty(Window(home).Property(highlightselect))">Skin.SetString(highlightcolor.name,FF93ce5f)</onclick>
    <onclick condition="!IsEmpty(Window(home).Property(backgroundselect))">Skin.SetString(backgroundcolor.name,FF93ce5f)</onclick>
    <onclick condition="!IsEmpty(Window(home).Property(dialogselect))">Skin.SetString(dialogcolor.name,FF93ce5f)</onclick>
    <onclick condition="!IsEmpty(Window(home).Property(textselect))">Skin.SetString(textcolor.name,FF93ce5f)</onclick>
    <onclick>Close</onclick>
    <thumb>colors/FF93ce5f.png</thumb>
    <label>FF93ce5f</label>
</item>

Because you use it to define 4 different colors, but you could make it more global color picker, by using String, like this:
Code:
<item id="1">
    <onclick>Skin.SetString($INFO[Skin.String(color_picker)],FF93ce5f)</onclick>
    <thumb>colors/FF93ce5f.png</thumb>
    <label>FF93ce5f</label>
</item>
and in your skinsetting.xml use this:
Code:
<onclick>Skin.SetString(color_picker,main_color)</onclick>
<onclick>ActivateWindow(1130)</onclick>

Also removed the "Close" action from onclick, it is better to see "live changes" and then hit "OK" when finish
Thanks, I've been thinking about taking another look at this code. I'd like to get rid of the color images and instead use colordiffuse with the color string. Not sure if that will work with the thumb tags in a panel though.
Reply
#13
it will not... thumb cannot get colordiffuse tag, I tried it already...could be much easier to add colors if so....

anyone knows If its possible to use Skin.String inside another Skin.String?
If I want to use this condition on the <itemlayout>
Code:
<visible>StringCompare(ListItem.Label,Skin.String(Skin.String(color_picker)))</visible>
doest work
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#14
nevermind.. I used some $VARs and solved all the problems...
now I have a "star" that indicated which color is selected, works for different strings, just need to put them into the VAR...
Image

onload:
Code:
<onload>SetProperty(colorpicker,$VAR[color_picker])</onload>

star icon:
Code:
<texture>star.png</texture>
<visible>StringCompare(ListItem.Label,Window().Property(colorpicker))</visible>

onclick: (for each item)
Code:
<!--black -->
<onclick>Skin.SetString($INFO[Skin.String(color_picker)],FF000000)</onclick>
<onclick>SetProperty(colorpicker,FF000000)</onclick>

Variable for your skin strings which contains colors:
Code:
<variable name="color_picker">
        <value condition="StringCompare(Skin.String(color_picker),BG.Color1)">$INFO[Skin.String(BG.Color1)]</value>
        <value condition="StringCompare(Skin.String(color_picker),BG.Color2)">$INFO[Skin.String(BG.Color2)]</value>
....
you may want to add another variable like this one for the "default" buttons and value.

working great...
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#15
I was able to simplify my code quite a bit, thanks tomer953!
Reply

Logout Mark Read Team Forum Stats Members Help
Color picker?0