mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
concept of default theme
This commit is contained in:
parent
a85a011db9
commit
37fd19290f
2 changed files with 7 additions and 2 deletions
|
@ -888,7 +888,7 @@ module.exports = React.createClass({
|
|||
*/
|
||||
_onSetTheme: function(theme) {
|
||||
if (!theme) {
|
||||
theme = 'light';
|
||||
theme = this.props.config.default_theme || 'light';
|
||||
}
|
||||
|
||||
// look for the stylesheet elements.
|
||||
|
|
|
@ -179,6 +179,11 @@ const THEMES = [
|
|||
label: _td('Dark theme'),
|
||||
value: 'dark',
|
||||
},
|
||||
{
|
||||
id: 'theme',
|
||||
label: _td('Status.im theme'),
|
||||
value: 'status',
|
||||
},
|
||||
];
|
||||
|
||||
const IgnoredUser = React.createClass({
|
||||
|
@ -279,7 +284,7 @@ module.exports = React.createClass({
|
|||
|
||||
const syncedSettings = UserSettingsStore.getSyncedSettings();
|
||||
if (!syncedSettings.theme) {
|
||||
syncedSettings.theme = 'light';
|
||||
syncedSettings.theme = SdkConfig.get().default_theme || 'light';
|
||||
}
|
||||
this._syncedSettings = syncedSettings;
|
||||
|
||||
|
|
Loading…
Reference in a new issue