Hey guys! Quick question.
I want to add a menu item that will allow users to switch between color schemes on the Eminence2 skin. I tried using the Skin.Theme(1)/(-1) command but that will only allow me to revert back to the default skin settings. It seems there are no "themes" setup for this skin just color profiles which are default and light. I want the user to be able to switch between default and light on a menu click.
Any ideas?
:/ can I create a 2nd theme ? Never done that
Yeah if you create a theme with the same name as the colour scheme it will change to the corresponding colour scheme when you switch themes. Just make a Textures.xbt with an unused texture in it (just use a blank white square png or something like that - The skin will fallback to the default set of textures for any textures that are missing in the theme). Rename the Textures.xbt to THEMENAME.xbt (replacing themename with the name of the colour scheme -- so Light.xbt) and place it in the media folder.
If you are on Windows you can use the gui texturepacker tool:
https://forum.kodi.tv/showthread.php?tid=201883
Details on making skin themes:
http://kodi.wiki/view/Skinning_Manual#Skin_Themes
(2017-08-26, 01:15)jurialmunkey Wrote: [ -> ]Yeah if you create a theme with the same name as the colour scheme it will change to the corresponding colour scheme when you switch themes. Just make a Textures.xbt with an unused texture in it (just use a blank white square png or something like that - The skin will fallback to the default set of textures for any textures that are missing in the theme). Rename the Textures.xbt to THEMENAME.xbt (replacing themename with the name of the colour scheme -- so Light.xbt) and place it in the media folder.
If you are on Windows you can use the gui texturepacker tool:
https://forum.kodi.tv/showthread.php?tid=201883
Details on making skin themes:
http://kodi.wiki/view/Skinning_Manual#Skin_Themes
AWESOME. thanks. I will try this when I get home from work.