Closed Agupane closed 5 years ago
Related to #327
Adds support for multiples themes, this should be also styled in order to add the "Dark Theme"
If a user wants to add a new theme, he should only need to:
/src/themes/DefaultTheme.ts
REACT_APP_THEME_NAME
The core mechanism relays on /src/util/template_meta_data.ts It maps an array of KNOW_THEMES_META_DATA / KNOW_THEMES_MODAL_META_DATA to a Theme object
/src/util/template_meta_data.ts
KNOW_THEMES_META_DATA / KNOW_THEMES_MODAL_META_DATA
Theme
The file/src/themes/theme_meta_data.ts contains a map of themeName: Theme.
/src/themes/theme_meta_data.ts
themeName: Theme
Related to #327
Adds support for multiples themes, this should be also styled in order to add the "Dark Theme"
If a user wants to add a new theme, he should only need to:
/src/themes/DefaultTheme.ts
object and modify current properties (or add new ones),REACT_APP_THEME_NAME
with the name of the added theme.The core mechanism relays on
/src/util/template_meta_data.ts
It maps an array ofKNOW_THEMES_META_DATA / KNOW_THEMES_MODAL_META_DATA
to aTheme
objectThe file
/src/themes/theme_meta_data.ts
contains a map ofthemeName: Theme
.