mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
fix: set android status bar color correctly
This commit is contained in:
@@ -87,6 +87,11 @@ export class AppComponent implements AfterContentInit {
|
|||||||
});
|
});
|
||||||
this.platform.ready().then(async () => {
|
this.platform.ready().then(async () => {
|
||||||
if (Capacitor.isNativePlatform()) {
|
if (Capacitor.isNativePlatform()) {
|
||||||
|
await StatusBar.setBackgroundColor({
|
||||||
|
color: getComputedStyle(document.documentElement)
|
||||||
|
.getPropertyValue('--ion-color-primary')
|
||||||
|
.trim(),
|
||||||
|
});
|
||||||
await StatusBar.setStyle({style: Style.Dark});
|
await StatusBar.setStyle({style: Style.Dark});
|
||||||
}
|
}
|
||||||
await this.authNotificationsInit();
|
await this.authNotificationsInit();
|
||||||
|
|||||||
Reference in New Issue
Block a user