Skip to content
Kodi add-on to create skin backups and themes
Branch: master
Clone or download
Latest commit b9121fb Mar 30, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources Create Hebrew translation Oct 17, 2017
LICENSE initial commit Nov 14, 2016 Update Mar 30, 2018
addon.xml fix restore Oct 1, 2017 use addon_data for temp files Feb 23, 2017
fanart.jpg initial commit Nov 14, 2016
icon.png initial commit Nov 14, 2016 bump version Nov 21, 2016

a backup script for Kodi skins

Help needed with maintaining !

I am very busy currently so I do not have a lot of time to work on this project or watch the forums. Be aware that this is a community driven project, so feel free to submit PR's yourself to improve the code and/or help others with support on the forums etc. If you're willing to really participate in the development, please contact me so I can give you write access to the repo. I do my best to maintain the project every once in a while, when I have some spare time left. Thanks for understanding!

Skin backup feature

The script comes with a backup/restore feature. It supports backup of ALL skin settings including skin shortcuts (when script.skinshortcuts is also used).

  • Backup all settings to file
  • Restore all settings from file
  • Reset the skin to default settings (wipe all settings)

###Backup the skin settings (including preferences for skinshortcuts)


Optional parameter: filter

It is possible to apply a filter to the backup. In that case only skin settings containing a specific phrase will be back-upped.
Can be usefull if you want to use the backup function for something else in your skin.
To use the filter you have to add the filter= argument and supply one or more phrases (separated by |)
For example:
The filter is not case sensitive

Optional parameter: promptfilename

If you want to prompt the user for the filename (instead of auto generating one), you can supply the promptfilename=true parameter to the script.

Optional parameter: silent

If you want to silently perform a backup, you can supply the silent= parameter with the full path to the zipfile that has to be created.

###Restore the skin settings


Optional parameter: silent

If you want to silently restore a backup, you can supply the silent= parameter with the full path to the zipfile that has to be restored.

###Reset the skin to defaults:


This will reset ALL skin settings.
Both the filter and silent arguments will also work with the reset feature.

Color themes feature

The script comes with a color theme feature. Basically it's just a simplified version of the skin backup/restore feature but it only backs up the colorsettings. Color Themes has the following features:

  • Present a list of skin provided color themes including screenshots.
  • Let's the user save his custom settings to a color theme.
  • Let's the user export his custom color theme to file.
  • Let's the user import a custom color theme from file.

###Present the dialog with all available color themes:


The user can pick a colortheme and apply that, create a new one etc.          

###Provide color themes with your skin

It is possible to deliver skin provided color themes. Those colorthemes should be stored in the skin's extras\skinthemes folder.
If you want to create one or more skinprovided color themes (for example the defaults):

- Create a folder "skinthemes" in your skin's "extras" folder. 
- Make all color modifications in your skin to represent the colortheme
- Hit the button to save your colortheme (createcolortheme command)
- Name it and select the correct screenshot
- On the filesystem navigate to Kodi userdata\addon_data\[YOURSKIN]\themes
- Copy both the themename.theme and the themename.jpg file to your above created skinthemes directory
- Do this action for every theme you want to include in your skin.
- It is possible to change the description of the theme, just open the .themes file in a texteditor. You can change both the THEMENAME and the DESCRIPTION values to your needs.

Instead of storing your skinthemes into a folder inside your skin structure, you can also choose to store all your skinthemes in a Kodi resource addon.


If the resource addon with your skinname is present, themes will be picked from that addon instead of the subfolder in your skin's extras directory.

###What settings are stored in the theme file ?

All Skin Settings settings that contain one of these words: color, opacity, texture.
Also the skin's theme will be saved (if any). So, to make sure the skin themes feature works properly you must be sure that all of your color-settings contain the word color. If any more words should be supported, please ask.

###Automatically set a color theme at day/night

You can have the script set a specified theme during day or night.
This will allow the user to have some more relaxing colors at night time and more fluid/bright during day time.

To enable this feature you must set the skin Bool SkinHelper.EnableDayNightThemes to true.

To setup the theme (and time) to use at day time:  XBMC.RunScript(,action=ColorThemes,daynight=day)
To setup the theme (and time) to use at night time:  XBMC.RunScript(,action=ColorThemes,daynight=night)

The script will auto set the correct theme at the specified times and fill these Skin Settings:
Skin.String(SkinHelper.ColorTheme.[day/night].label --> A formatted string of the selected theme and the time it will apply for day or night
Skin.String(SkinHelper.ColorTheme.[day/night].theme --> Only the name of the chosen theme
Skin.String(SkinHelper.ColorTheme.[day/night].time --> Only the time of the chosen theme
Skin.String(SkinHelper.ColorTheme.[day/night].file --> Only the filename of the chosen theme
SkinHelper.LastColorTheme --> This will always hold the name of the last chosen theme (also if this day/night mode is disabled)

Some example code to use:

<control type="radiobutton" id="15033">
    <label>Enable day/night color themes</label>

<control type="button" id="15034">
    <label>Theme to use at day time: $INFO[Skin.String(SkinHelper.ColorTheme.Day)]</label>
<control type="button" id="15035">
    <label>Theme to use at night time: $INFO[Skin.String(SkinHelper.ColorTheme.Night)]</label>

You can’t perform that action at this time.