Use Case: A user might want to fork riot-web and provide a custom skin + css theme, while still using the official matrix-react-sdk.
Problem: In develop, the list of supported themes is defined by matrix-react-sdk in src/themes.js, and there is no way to override this list without patching matrix-react-sdk
Repro:
Fork riot-web, for example myweb
Create a css theme at my-web/res/themes/myweb/css/
Set default_theme in config.json to be myweb
Add myweb to the list of css themes in webpack.config.js
Build and open my-web
Result: :cry: The light theme is used by default.
(not so nice) Workaround:
Edit src/themes.js, adding myweb to the list of THEMES
Build and open myweb
Results: The myweb theme is used by default
Solution: Presumably the list of supported themes should be defined by the skin project, probably in config.json?
Use Case: A user might want to fork riot-web and provide a custom skin + css theme, while still using the official matrix-react-sdk.
Problem: In develop, the list of supported themes is defined by matrix-react-sdk in
src/themes.js
, and there is no way to override this list without patching matrix-react-sdkRepro:
myweb
my-web/res/themes/myweb/css/
default_theme
in config.json to bemyweb
myweb
to the list of css themes inwebpack.config.js
Result: :cry: The light theme is used by default.
(not so nice) Workaround:
src/themes.js
, addingmyweb
to the list ofTHEMES
myweb
Results: The myweb theme is used by default
Solution: Presumably the list of supported themes should be defined by the skin project, probably in config.json?