feat: custom themes polishing

This commit is contained in:
3252a8
2026-05-15 14:38:39 +03:00
parent a1725a6872
commit 86ddceb646
9 changed files with 104 additions and 68 deletions
@@ -119,8 +119,7 @@ export function createThemesStore({ api, onThemesSaved, flash, at }) {
}
}
async function setCurrentTheme(key) {
let changed = false;
function setCurrentTheme(key) {
state.update((s) => ({
...s,
themesCatalog: {
@@ -132,11 +131,6 @@ export function createThemesStore({ api, onThemesSaved, flash, at }) {
})),
},
}));
state.update((s) => {
changed = s.themesCatalog.default_theme === key;
return s;
});
if (changed) await saveThemes({ silent: true });
}
function togglePrimaryAccent(key, enabled) {