|
|
|
@ -13,7 +13,8 @@ export class ThemeService { |
|
|
|
|
|
|
|
constructor( |
|
|
|
private httpClient: HttpClient, |
|
|
|
private styleManagerService: StyleManagerService) { } |
|
|
|
private styleManagerService: StyleManagerService) { |
|
|
|
} |
|
|
|
|
|
|
|
getThemeOptions(): Observable<Array<ThemeOption>> { |
|
|
|
return this.httpClient.get<Array<ThemeOption>>("assets/theme-options.json"); |
|
|
|
@ -24,5 +25,6 @@ export class ThemeService { |
|
|
|
"theme", |
|
|
|
`${selectedTheme}.css` |
|
|
|
) |
|
|
|
localStorage.setItem('style', selectedTheme); |
|
|
|
} |
|
|
|
} |
|
|
|
|