From 9561f2a55752a5375c0821ea55652f83ac5d7bba Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 23 Nov 2019 15:12:50 +0000 Subject: [PATCH] Update documentation for themes --- README_customizations.md | 32 ++------------------------------ website/index.html | 11 ----------- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/README_customizations.md b/README_customizations.md index 72f86fb56..841596df8 100644 --- a/README_customizations.md +++ b/README_customizations.md @@ -26,34 +26,6 @@ When a moderator report is created the message at the top of the screen can be c Extra emoji can be added to the *emoji* directory and you should then update the **emoji/emoji.json** file, which maps the name to the filename (without the .png extension). -## Style / Colors +## Themes -There are a few predefined themes which you can change to. Move to the directory where Epicyon is installed, then you can use: - -``` bash -theme default -theme light -theme hacker -theme purple -``` - -Alternatively if you want to create a much more customized theme then you can manually edit css files. - -Create copies of the default files: - -``` bash -cp epicyon-profile.css epicyon.css -cp epicyon-follow.css follow.css -cp epicyon-login.css login.css -cp epicyon-suspended.css suspended.css -``` - -You can then edit *epicyon.css*, *follow.css*, *login.css* and *follow.css* as needed and those files won't be overwritten if you upgrade. - -*epicyon.css* is the main style for displaying profiles and timelines. - -*follow.css* is used for displaying options when you select an avatar. - -*login.css* defines the style of the login screen. - -*suspended.css* is the style for the screen which shows that an account has been suspended. \ No newline at end of file +If you want to create a new theme then the functions for that are within *theme.py*. These functions take the css templates and modify them. You will need to edit *themesDropdown* within *webinterface.py* and add the appropriate translations for the theme name. Themes are selectable from the profile screen of the administrator. diff --git a/website/index.html b/website/index.html index 7852bfd71..0d255efa2 100644 --- a/website/index.html +++ b/website/index.html @@ -1250,17 +1250,6 @@

chown -R epicyon:epicyon /opt/epicyon

-

- If you want to use a theme other than the default one: -

-
-

cd /opt/epicyon

-

theme purple

-
-

- Possible themes are default,purple,light,hacker or highvis. -

-

Create a daemon: