From ac364e7c67e5b9817ef868c470099acce253550d Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Fri, 3 Mar 2017 16:56:47 +0100 Subject: [PATCH] Add clearer "creating themes" instructions --- themes/CREATING-THEMES.txt | 19 ++++++++++ themes/template.svg | 75 +++++++++++++++----------------------- 2 files changed, 48 insertions(+), 46 deletions(-) create mode 100644 themes/CREATING-THEMES.txt diff --git a/themes/CREATING-THEMES.txt b/themes/CREATING-THEMES.txt new file mode 100644 index 0000000..fd750d6 --- /dev/null +++ b/themes/CREATING-THEMES.txt @@ -0,0 +1,19 @@ +There are currently two ways to create a new theme for Klooni: + + +The easy way +============ +1. Copy the ``template.svg`` and paste it under this directory. +2. Name the copied file the way you wish to call the theme (e.g. `mytheme.svg`). +3. Modify the file with a .svg editor, preferrably Inkscape. +4. When you're done, run ``python3 generate_theme.py`` and follow the wizard. +5. Done! + + +The "hard" way +============== +1. Go into ``Klooni/android/assets/themes``. +2. Copy any theme file. +3. Modify the hexadecimal values of the colors with a text editor. +4. Remember to add your new theme filename to the ``theme.list`` file. +5. Done! diff --git a/themes/template.svg b/themes/template.svg index c9b64d4..30f717a 100644 --- a/themes/template.svg +++ b/themes/template.svg @@ -11,23 +11,23 @@ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="800" height="700" - viewBox="0 0 283.46457 0" + viewBox="0 0 800.00001 700.00001" id="svg2" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="theme.svg"> + sodipodi:docname="template.svg"> + units="px" /> @@ -46,23 +45,17 @@ image/svg+xml - + - + transform="translate(0,-352.36216)"> - To easily create a custom theme, copythis file and rename it as "in.svg". Placeit under the same folder, and make yourchanges on the new file. Then simply run"generate_theme.py" to create "out.theme" + transform="translate(3.030458,-199.99998)">