save theme 1 for doneIt

This commit is contained in:
Peter Maquiran
2022-10-18 14:51:24 +01:00
parent fa05871de5
commit 46296f5f3e
93 changed files with 520 additions and 92 deletions
+8
View File
@@ -39,6 +39,14 @@
class="icon-next"
slot="end"
src="assets/images/icons-arrow-circle-arrow-right.svg"
*ngIf="ThemeService.currentTheme != 'doneIt' "
></ion-icon>
<ion-icon
class="icon-next"
slot="end"
src="assets/images/theme/doneIt/icons-arrow-circle-arrow-right.svg"
></ion-icon>
</button>
</div>
+2
View File
@@ -14,6 +14,7 @@ import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
import { ExpedienteTaskPipe } from 'src/app/pipes/expediente-task.pipe';
import { ExpedienteGdStore } from 'src/app/store/expedientegd-store.service';
import { SessionStore } from 'src/app/store/session.service';
import { ThemeService } from 'src/app/services/theme.service';
@Component({
selector: 'app-events',
@@ -80,6 +81,7 @@ export class EventsPage implements OnInit {
private modalController:ModalController,
private screenOrientation: ScreenOrientation,
public platform: Platform,
public ThemeService: ThemeService,
) {
this.existingScreenOrientation = this.screenOrientation.type;
+4 -2
View File
@@ -10,10 +10,11 @@ export class ThemeService {
themes = [
'gov',
'default',
'tribunal'
'tribunal',
'doneIt'
]
currentTheme: 'gov' | 'default' | 'tribunal' = 'gov'
currentTheme: 'gov' | 'default' | 'tribunal' | 'doneIt' = 'gov'
keyName: string
constructor(
@@ -35,6 +36,7 @@ export class ThemeService {
document.body.classList.remove("gov");
document.body.classList.remove("default");
document.body.classList.remove("tribunal");
document.body.classList.remove("doneIt");
document.body.classList.add(theme);
this.currentTheme = theme;