(customTheme: Theme)
| 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; } |
no test coverage detected