mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -08:00
feat: add dark theme
This commit is contained in:
19 files changed
+201
-45
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user