You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
concept of default theme
This commit is contained in:
@ -888,7 +888,7 @@ module.exports = React.createClass({
|
|||||||
*/
|
*/
|
||||||
_onSetTheme: function(theme) {
|
_onSetTheme: function(theme) {
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
theme = 'light';
|
theme = this.props.config.default_theme || 'light';
|
||||||
}
|
}
|
||||||
|
|
||||||
// look for the stylesheet elements.
|
// look for the stylesheet elements.
|
||||||
|
@ -179,6 +179,11 @@ const THEMES = [
|
|||||||
label: _td('Dark theme'),
|
label: _td('Dark theme'),
|
||||||
value: 'dark',
|
value: 'dark',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'theme',
|
||||||
|
label: _td('Status.im theme'),
|
||||||
|
value: 'status',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const IgnoredUser = React.createClass({
|
const IgnoredUser = React.createClass({
|
||||||
@ -279,7 +284,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
const syncedSettings = UserSettingsStore.getSyncedSettings();
|
const syncedSettings = UserSettingsStore.getSyncedSettings();
|
||||||
if (!syncedSettings.theme) {
|
if (!syncedSettings.theme) {
|
||||||
syncedSettings.theme = 'light';
|
syncedSettings.theme = SdkConfig.get().default_theme || 'light';
|
||||||
}
|
}
|
||||||
this._syncedSettings = syncedSettings;
|
this._syncedSettings = syncedSettings;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user