web: persist theme's color scheme when setting a new theme (#10270)

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2026-08-25 09:46:58 +05:00
committed by GitHub
parent 5d03d3033f
commit 9190a1de3f

View File

@@ -50,6 +50,7 @@ class ThemeStore extends BaseStore<ThemeStore> {
setTheme = (theme: ThemeDefinition) => {
changeDesktopTheme(theme, this.get().followSystemTheme);
Config.set("colorScheme", theme.colorScheme);
Config.set(`theme:${theme.colorScheme}`, theme);
this.set({
[getKey(theme)]: theme,