MCPcopy
hub / github.com/nukeop/nuclear / persistActiveTheme

Function persistActiveTheme

packages/player/src/stores/themeStore.ts:26–29  ·  view source on GitHub ↗
(theme: ActiveTheme)

Source from the content-addressed store, hash-verified

24 theme.type === 'advanced' ? theme.path : theme.id;
25
26const persistActiveTheme = async (theme: ActiveTheme) => {
27 await setSetting('core.theme.active.type', theme.type);
28 await setSetting('core.theme.active.id', activeThemeId(theme));
29};
30
31type ThemeStoreState = {
32 advancedThemes: AdvancedThemeFile[];

Callers 1

themeStore.tsFile · 0.85

Calls 2

setSettingFunction · 0.90
activeThemeIdFunction · 0.85

Tested by

no test coverage detected