New themes added

This commit is contained in:
Eudes Inácio
2021-10-20 17:46:03 +01:00
parent de29ff978d
commit 55f5fd822d
10 changed files with 222 additions and 91 deletions
@@ -1,10 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { AnimationController, ModalController } from '@ionic/angular';
import { AnimationController, ModalController,Platform } from '@ionic/angular';
import { FingerprintPage } from 'src/app/shared/fingerprint/fingerprint.page';
import { PinPage } from 'src/app/shared/pin/pin.page';
import { SessionStore } from 'src/app/store/session.service';
import { environment } from 'src/environments/environment';
import { Platform } from '@ionic/angular';
import { BackgroundService } from 'src/app/services/background.service';
@Component({
selector: 'app-edit-profile',
@@ -19,6 +19,7 @@ export class EditProfilePage implements OnInit {
constructor(private modalController:ModalController,
private animationController: AnimationController,
public platform: Platform,
private backgroundservice: BackgroundService
) {}
ngOnInit() {}
@@ -113,5 +114,15 @@ export class EditProfilePage implements OnInit {
}
changeTheme(name) {
/* this.theme.setTheme(themes[name]); */
if(name == 'grey') {
this.backgroundservice.greyTheme();
} else if (name == 'blue') {
this.backgroundservice.blueTheme();
}
}
}