diff --git a/config.xml b/config.xml index ea0586ed8..2065b02f4 100644 --- a/config.xml +++ b/config.xml @@ -27,12 +27,6 @@ - - - - - - @@ -47,7 +41,7 @@ - 3077110622 + 1109370933 3619450036 diff --git a/package.json b/package.json index 2db5a1299..bd977f239 100644 --- a/package.json +++ b/package.json @@ -199,4 +199,4 @@ "url": "git+https://Kayaya@bitbucket.org/equilibriumito/gabinete-digital.git" }, "license": "ISC" -} +} \ No newline at end of file diff --git a/resources/android/icon/mipmap-hdpi/ic_launcher.png b/resources/android/icon/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index 2a90f40f8..000000000 Binary files a/resources/android/icon/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/resources/android/icon/mipmap-mdpi/ic_launcher.png b/resources/android/icon/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index ed9328d64..000000000 Binary files a/resources/android/icon/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/resources/android/icon/mipmap-xhdpi/ic_launcher.png b/resources/android/icon/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index c68bc0adc..000000000 Binary files a/resources/android/icon/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/resources/android/icon/mipmap-xxhdpi/ic_launcher.png b/resources/android/icon/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d11d659a1..000000000 Binary files a/resources/android/icon/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/resources/android/icon/mipmap-xxxhdpi/ic_launcher.png b/resources/android/icon/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index a51c14623..000000000 Binary files a/resources/android/icon/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/resources/android/splash/drawable-land-hdpi-screen.png b/resources/android/splash/drawable-land-hdpi-screen.png index 444dc39ab..56df3990c 100644 Binary files a/resources/android/splash/drawable-land-hdpi-screen.png and b/resources/android/splash/drawable-land-hdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-ldpi-screen.png b/resources/android/splash/drawable-land-ldpi-screen.png index 80409d7bd..0a005cbc7 100644 Binary files a/resources/android/splash/drawable-land-ldpi-screen.png and b/resources/android/splash/drawable-land-ldpi-screen.png differ diff --git a/resources/android/splash/drawable-land-mdpi-screen.png b/resources/android/splash/drawable-land-mdpi-screen.png index f9342e83a..9d47a4334 100644 Binary files a/resources/android/splash/drawable-land-mdpi-screen.png and b/resources/android/splash/drawable-land-mdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-xhdpi-screen.png b/resources/android/splash/drawable-land-xhdpi-screen.png index d7936aa71..ce457f4f0 100644 Binary files a/resources/android/splash/drawable-land-xhdpi-screen.png and b/resources/android/splash/drawable-land-xhdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-xxhdpi-screen.png b/resources/android/splash/drawable-land-xxhdpi-screen.png index 63a3b921a..cad67a35a 100644 Binary files a/resources/android/splash/drawable-land-xxhdpi-screen.png and b/resources/android/splash/drawable-land-xxhdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-xxxhdpi-screen.png b/resources/android/splash/drawable-land-xxxhdpi-screen.png index 22ec1444a..0eb63db93 100644 Binary files a/resources/android/splash/drawable-land-xxxhdpi-screen.png and b/resources/android/splash/drawable-land-xxxhdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-hdpi-screen.png b/resources/android/splash/drawable-port-hdpi-screen.png index a6b455ddf..07cd4e011 100644 Binary files a/resources/android/splash/drawable-port-hdpi-screen.png and b/resources/android/splash/drawable-port-hdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-ldpi-screen.png b/resources/android/splash/drawable-port-ldpi-screen.png index e1f6c084c..237209d9d 100644 Binary files a/resources/android/splash/drawable-port-ldpi-screen.png and b/resources/android/splash/drawable-port-ldpi-screen.png differ diff --git a/resources/android/splash/drawable-port-mdpi-screen.png b/resources/android/splash/drawable-port-mdpi-screen.png index f65e1fb76..3067c9c5c 100644 Binary files a/resources/android/splash/drawable-port-mdpi-screen.png and b/resources/android/splash/drawable-port-mdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-xhdpi-screen.png b/resources/android/splash/drawable-port-xhdpi-screen.png index bee833117..069494e9b 100644 Binary files a/resources/android/splash/drawable-port-xhdpi-screen.png and b/resources/android/splash/drawable-port-xhdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-xxhdpi-screen.png b/resources/android/splash/drawable-port-xxhdpi-screen.png index 2f9421671..c0ac7ccff 100644 Binary files a/resources/android/splash/drawable-port-xxhdpi-screen.png and b/resources/android/splash/drawable-port-xxhdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-xxxhdpi-screen.png b/resources/android/splash/drawable-port-xxxhdpi-screen.png index 0295c0138..bebfc65ab 100644 Binary files a/resources/android/splash/drawable-port-xxxhdpi-screen.png and b/resources/android/splash/drawable-port-xxxhdpi-screen.png differ diff --git a/resources/icon.png b/resources/icon.png index 73421fb35..64ef20966 100644 Binary files a/resources/icon.png and b/resources/icon.png differ diff --git a/resources/splash.png b/resources/splash.png index 960cb82a4..6ceb5b008 100644 Binary files a/resources/splash.png and b/resources/splash.png differ diff --git a/src/app/modals/profile/edit-profile/edit-profile.page.html b/src/app/modals/profile/edit-profile/edit-profile.page.html index 54fa10719..d9c9f25d7 100644 --- a/src/app/modals/profile/edit-profile/edit-profile.page.html +++ b/src/app/modals/profile/edit-profile/edit-profile.page.html @@ -36,7 +36,7 @@
- +
@@ -47,7 +47,7 @@
- +
@@ -63,14 +63,14 @@
-
- -
-
+
+ +
+
diff --git a/src/app/modals/profile/edit-profile/edit-profile.page.scss b/src/app/modals/profile/edit-profile/edit-profile.page.scss index 314eb12d0..79df9b441 100644 --- a/src/app/modals/profile/edit-profile/edit-profile.page.scss +++ b/src/app/modals/profile/edit-profile/edit-profile.page.scss @@ -96,6 +96,10 @@ border-color: transparent !important; } +.ion-icon-class-theme { + color: var(--profile-text-color) ; +} + .login-preference{ margin-top: 15px; float: left; diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts index 3f0acc240..55b8fc6c7 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login/login.page.ts @@ -9,7 +9,8 @@ import { NotificationsService } from 'src/app/services/notifications.service'; import { SessionStore } from 'src/app/store/session.service'; import { ClearStoreService } from 'src/app/services/clear-store.service'; import { ChangeProfileService } from 'src/app/services/change-profile.service'; -import { ThemeService } from 'src/app/services/theme.service' +import { ThemeService } from 'src/app/services/theme.service'; +import { StorageService } from 'src/app/services/storage.service' @Component({ selector: 'app-login', @@ -37,11 +38,15 @@ export class LoginPage implements OnInit { public alertController: AlertController, private clearStoreService: ClearStoreService, private changeProfileService: ChangeProfileService, - public ThemeService: ThemeService + public themeservice: ThemeService, + private storageservice: StorageService ) {} ngOnInit() { - + this.storageservice.get('theme').then((theme) =>{ + console.log('LOGIN THEME',theme) + this.themeservice.setTheme(theme) + }) } //Function to validade the login inputs diff --git a/src/app/pages/publications/publications.page.scss b/src/app/pages/publications/publications.page.scss index f1172d192..5cb817ed6 100644 --- a/src/app/pages/publications/publications.page.scss +++ b/src/app/pages/publications/publications.page.scss @@ -177,7 +177,7 @@ ion-toolbar{ } .item:hover{ - background-color: #e6f6ff75; + background-color: var(--box-hover-background-color) !important; } ion-item-options{ diff --git a/src/app/services/background.service.ts b/src/app/services/background.service.ts index 3831ed5e7..e1670c200 100644 --- a/src/app/services/background.service.ts +++ b/src/app/services/background.service.ts @@ -1,4 +1,5 @@ import { Injectable } from '@angular/core'; +import { ThemeService } from 'src/app/services/theme.service'; @Injectable({ providedIn: 'root' @@ -11,14 +12,27 @@ export class BackgroundService { funx: Function }[] = [] - constructor() { } + constructor( + private themeservice: ThemeService + ) { } online() { - document.body.style.setProperty(`--color`, "#0782C9"); - document.body.style.setProperty(`--color2`, "#45BAFF"); - document.body.style.setProperty(`--color3`, "#0782C9"); - document.body.style.setProperty(`--color4`, "#0782c9f0"); - document.body.style.setProperty(`--color5`, "#45BAFF"); + if (this.themeservice.currentTheme == 'gov') { + + document.body.style.setProperty(`--color`, "#d9d9d9"); + document.body.style.setProperty(`--color2`, "#f0f0f0"); + document.body.style.setProperty(`--color3`, "#d9d9d9"); + document.body.style.setProperty(`--color4`, "#d9d9d9ee"); + document.body.style.setProperty(`--color5`, "#ececec"); + + } else { + document.body.style.setProperty(`--color`, "#0782C9"); + document.body.style.setProperty(`--color2`, "#45BAFF"); + document.body.style.setProperty(`--color3`, "#0782C9"); + document.body.style.setProperty(`--color4`, "#0782c9f0"); + document.body.style.setProperty(`--color5`, "#45BAFF"); + } + this.callBacks.forEach((e) => { if (e.type == 'Online') { e.funx() diff --git a/src/app/services/theme.service.ts b/src/app/services/theme.service.ts index fdf345739..885d7fed2 100644 --- a/src/app/services/theme.service.ts +++ b/src/app/services/theme.service.ts @@ -1,4 +1,5 @@ import { Injectable } from '@angular/core'; +import { StorageService } from 'src/app/services/storage.service'; @Injectable({ providedIn: 'root' @@ -12,7 +13,7 @@ export class ThemeService { currentTheme = 'gov' - constructor() { } + constructor(private storageservice: StorageService) { } setTheme(theme: 'gov' | 'default') { @@ -20,7 +21,8 @@ export class ThemeService { document.body.classList.remove("default"); document.body.classList.add(theme); this.currentTheme = theme - console.log('Current theme', theme) + console.log('Current theme', theme); + this.storageservice.store('theme',theme); } diff --git a/src/theme/variables.scss b/src/theme/variables.scss index ec531d7bf..31217596e 100644 --- a/src/theme/variables.scss +++ b/src/theme/variables.scss @@ -375,7 +375,7 @@ $app-theme: mat-light-theme( } */ .item-hover:hover { - background-color: var(--box-hover-background-color); + background-color: var(--box-hover-background-color) !important; } .box-hover:hover {