You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Merge pull request #4810 from matrix-org/travis/room-list/theme
Have the theme switcher set the device-level theme to match settings
This commit is contained in:
@@ -117,7 +117,7 @@ export default class UserMenuButton extends React.Component<IProps, IState> {
|
|||||||
SettingsStore.setValue("use_system_theme", null, SettingLevel.DEVICE, false);
|
SettingsStore.setValue("use_system_theme", null, SettingLevel.DEVICE, false);
|
||||||
|
|
||||||
const newTheme = this.state.isDarkTheme ? "light" : "dark";
|
const newTheme = this.state.isDarkTheme ? "light" : "dark";
|
||||||
SettingsStore.setValue("theme", null, SettingLevel.ACCOUNT, newTheme);
|
SettingsStore.setValue("theme", null, SettingLevel.DEVICE, newTheme); // set at same level as Appearance tab
|
||||||
};
|
};
|
||||||
|
|
||||||
private onSettingsOpen = (ev: ButtonEvent, tabId: string) => {
|
private onSettingsOpen = (ev: ButtonEvent, tabId: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user