Skip to content

Commit c0a0466

Browse files
authored
Merge pull request element-hq#11017 from vector-im/bwindels/custom-themes-mvp
Custom themes MVP
2 parents 6173841 + 31dc423 commit c0a0466

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎docs/config.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ For a good example, see https://riot.im/develop/config.json.
8080
1. `defaultCountryCode`: The ISO 3166 alpha2 country code to use when showing
8181
country selectors, like the phone number input on the registration page.
8282
Defaults to `GB` if the given code is unknown or not provided.
83+
1. `settingDefaults`: Defaults for settings that support the `config` level,
84+
as an object mapping setting name to value (note that the "theme" setting
85+
is special cased to the `default_theme` in the config file).
8386
1. `disable_custom_urls`: disallow the user to change the
8487
default homeserver when signing up or logging in.
8588
1. `permalinkPrefix`: Used to change the URL that Riot generates permalinks with.

‎webpack.config.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ module.exports = {
1818
// CSS themes
1919
"theme-light": "./node_modules/matrix-react-sdk/res/themes/light/css/light.scss",
2020
"theme-dark": "./node_modules/matrix-react-sdk/res/themes/dark/css/dark.scss",
21+
"theme-light-custom": "./node_modules/matrix-react-sdk/res/themes/light-custom/css/light-custom.scss",
22+
"theme-dark-custom": "./node_modules/matrix-react-sdk/res/themes/dark-custom/css/dark-custom.scss",
2123
},
2224
module: {
2325
rules: [

0 commit comments

Comments
 (0)