From aa471cdcc5e81a78d2211734eb414796fec8dade Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 23 Feb 2019 14:21:05 +0530 Subject: [PATCH] Add Themes. --- Customization.md | 4 ++++ Themes.md | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Themes.md diff --git a/Customization.md b/Customization.md index f349f9a..a2c8f76 100644 --- a/Customization.md +++ b/Customization.md @@ -24,3 +24,7 @@ WISH_THEME=rgb_gradient ## Plugins [Check out the list of plugins here](/Plugins) + +## Themes + +[Check out the list of themes here](/Themes) diff --git a/Themes.md b/Themes.md new file mode 100644 index 0000000..d58241f --- /dev/null +++ b/Themes.md @@ -0,0 +1,16 @@ +# Themes + ++ plain ++ rgb\_gradient + + +## Creating Themes + +Themes need to define the following variables. + ++ `WISH_DEFAULT_FG` ++ `WISH_DEFAULT_BG` + +Plugins will fallback to these variables if they are not themed. + +Themes also need to define variables for plugins. For each plugin named `abc`, the theme needs to define `WISH_ABC_BG` and `WISH_ABC_FG`. Themes can optionally iterate over `WISH_PLUGINS` array to ensure to theme all elements. Check existing [themes](https://gitlab.com/ceda_ei/wish/tree/master/themes).