MCPcopy
hub / github.com/DevCloudFE/ng-devui / saveCustomTheme

Method saveCustomTheme

devui/theme/theme-service.ts:135–139  ·  view source on GitHub ↗
(customTheme: Theme)

Source from the content-addressed store, hash-verified

133 }
134
135 saveCustomTheme(customTheme: Theme) {
136 this.storage.trySetLocalStorage(THEME_KEY.userLastPreferTheme, customTheme.id);
137 this.storage.trySetLocalStorage(THEME_KEY.userLastPreferThemeData, JSON.stringify(customTheme.data));
138 this.context.setDataFromNameSpace(THEME_KEY.currentTheme, customTheme.id);
139 }
140
141 private notify(theme: Theme, eventType: string) {
142 if (!this.eventBus) { return; }

Callers 1

renderThemeMethod · 0.95

Calls 2

trySetLocalStorageMethod · 0.65
setDataFromNameSpaceMethod · 0.65

Tested by

no test coverage detected