Notes on adding themes

main
Bob Mottram 2020-05-28 10:34:54 +01:00
parent 313a5131fd
commit 37d3691833
1 changed files with 7 additions and 0 deletions

View File

@ -202,6 +202,13 @@ If you want to use a particular font then copy it into the *fonts* directory, re
systemctl restart epicyon
```
## Adding Themes
If you want to add a new theme then open `theme.py` and add the theme name to the list within `getThemesList`. Add a function with the name `setTheme[YourThemeName]`. Have a look at the other themes to get an idea of how to set the colors and fonts.
On a running instance you can experiment with colors or fonts by editing `epicyon.css` and then reloading the web page. Once you are happy with the results then you can update the changed values within your `setTheme` function.
## Running Unit Tests
To run the unit tests: