From f16f804637250c8d7c3d9cdb5e18eb0536b6c7e5 Mon Sep 17 00:00:00 2001 From: Paulo Pinto Date: Fri, 20 Aug 2021 12:19:19 +0100 Subject: [PATCH 1/2] Fix theme key The key must match the theme name, otherwise the getThemesImports() function will exit with an error. Signed-off-by: Paulo Pinto --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index fa5ad87d7d..717d08786d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -16,7 +16,7 @@ if (!ogImageUrl) ogImageUrl = 'https://app.element.io/themes/element/img/logos/o const cssThemes = { // CSS themes - "theme-legacy": "./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss", + "theme-legacy-light": "./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss", "theme-legacy-dark": "./node_modules/matrix-react-sdk/res/themes/legacy-dark/css/legacy-dark.scss", "theme-light": "./node_modules/matrix-react-sdk/res/themes/light/css/light.scss", "theme-dark": "./node_modules/matrix-react-sdk/res/themes/dark/css/dark.scss", From 58c0eecbf85e11c629705c2922f3bd8343b68755 Mon Sep 17 00:00:00 2001 From: Paulo Pinto Date: Fri, 20 Aug 2021 12:21:34 +0100 Subject: [PATCH 2/2] Use correct theme names in .env.example Signed-off-by: Paulo Pinto --- .env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 00d8a7b738..b0b909aa86 100644 --- a/.env.example +++ b/.env.example @@ -3,8 +3,8 @@ CSS_HOT_RELOAD=1 # To use a single theme, uncomment the line with the theme you want to hot-reload. MATRIX_THEMES='light' #MATRIX_THEMES='dark' -#MATRIX_THEMES='light-legacy' -#MATRIX_THEMES='dark-legacy' +#MATRIX_THEMES='legacy-light' +#MATRIX_THEMES='legacy-dark' #MATRIX_THEMES='light-custom' #MATRIX_THEMES='dark-custom' # You can also enable multiple themes by using a comma-separated list.