Use SettingsStore for default theme
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
5104ebfd29
commit
022e40a127
2 changed files with 3 additions and 3 deletions
|
@ -891,7 +891,7 @@ module.exports = React.createClass({
|
||||||
*/
|
*/
|
||||||
_onSetTheme: function(theme) {
|
_onSetTheme: function(theme) {
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
theme = this.props.config.default_theme || 'light';
|
theme = SettingsStore.getValueAt(SettingLevel.DEFAULT, "theme");
|
||||||
}
|
}
|
||||||
|
|
||||||
// look for the stylesheet elements.
|
// look for the stylesheet elements.
|
||||||
|
|
|
@ -181,8 +181,8 @@ export default class SettingsStore {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a setting's value at a particular level, ignoring all levels that are more specific.
|
* Gets a setting's value at a particular level, ignoring all levels that are more specific.
|
||||||
* @param {"device"|"room-device"|"room-account"|"account"|"room"} level The level to
|
* @param {"device"|"room-device"|"room-account"|"account"|"room"|"config"|"default"} level The
|
||||||
* look at.
|
* level to look at.
|
||||||
* @param {string} settingName The name of the setting to read.
|
* @param {string} settingName The name of the setting to read.
|
||||||
* @param {String} roomId The room ID to read the setting value in, may be null.
|
* @param {String} roomId The room ID to read the setting value in, may be null.
|
||||||
* @param {boolean} explicit If true, this method will not consider other levels, just the one
|
* @param {boolean} explicit If true, this method will not consider other levels, just the one
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue