feat: add dark theme

This commit is contained in:
4gray committed 2021-03-21 13:15:24 +01:00
1 parent 2e6fa1cfa7
commit 0cf010aba3
19 files changed
+201 -45

No files matched your search

+6
View File
@@ -8,6 +8,7 @@ import { ChannelStore } from './state';
import { StorageMap } from '@ngx-pwa/local-storage';
import { Settings } from './settings/settings.interface';
import { EPG_ERROR, EPG_FETCH, EPG_FETCH_DONE } from '../../ipc-commands';
import { SettingsService } from './services/settings.service';
// create custom title bar
new Titlebar({
@@ -28,6 +29,7 @@ export class AppComponent {
private ngZone: NgZone,
private router: Router,
private translate: TranslateService,
private settingsService: SettingsService,
private snackBar: MatSnackBar,
private storage: StorageMap
) {
@@ -115,6 +117,10 @@ export class AppComponent {
horizontalPosition: 'right',
});
}
if (settings.theme) {
this.settingsService.changeTheme(settings.theme);
}
}
});