mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Added function on edit-perfil button to change themes
This commit is contained in:
@@ -5,6 +5,7 @@ import { PinPage } from 'src/app/shared/pin/pin.page';
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { BackgroundService } from 'src/app/services/background.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-edit-profile',
|
||||
@@ -19,7 +20,8 @@ export class EditProfilePage implements OnInit {
|
||||
constructor(private modalController:ModalController,
|
||||
private animationController: AnimationController,
|
||||
public platform: Platform,
|
||||
private backgroundservice: BackgroundService
|
||||
private backgroundservice: BackgroundService,
|
||||
private themeservice: ThemeService
|
||||
) {}
|
||||
|
||||
ngOnInit() {}
|
||||
@@ -115,13 +117,7 @@ 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();
|
||||
}
|
||||
|
||||
this.themeservice.setTheme(name)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user