mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Theme change bug
This commit is contained in:
@@ -14,6 +14,7 @@ import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
|
||||
import { StorageService } from 'src/app/services/storage.service';
|
||||
import { MessageModel } from './models/beast-orm';
|
||||
import { InativityService } from "src/app/services/inativity.service";
|
||||
import { ThemeService } from 'src/app/services/theme.service';
|
||||
|
||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||
parse: {
|
||||
@@ -45,7 +46,8 @@ export class AppComponent {
|
||||
private sqliteservice: SqliteService,
|
||||
private backgroundservice: BackgroundService,
|
||||
private storageservice: StorageService,
|
||||
private InativityService: InativityService
|
||||
private InativityService: InativityService,
|
||||
public ThemeService: ThemeService,
|
||||
) {
|
||||
// this.createCacheFolder()
|
||||
this.initializeApp();
|
||||
@@ -89,6 +91,11 @@ export class AppComponent {
|
||||
this.backgroundservice.offline();
|
||||
}
|
||||
})
|
||||
|
||||
this.storageservice.get('theme').then((theme) =>{
|
||||
console.log('THEME: ', theme)
|
||||
this.ThemeService.setTheme(theme)
|
||||
})
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user