mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-18 15:42:54 +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 () => {
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
await StatusBar.setBackgroundColor({
|
||||
color: getComputedStyle(document.documentElement)
|
||||
.getPropertyValue('--ion-color-primary')
|
||||
.trim(),
|
||||
});
|
||||
await StatusBar.setStyle({style: Style.Dark});
|
||||
}
|
||||
await this.authNotificationsInit();
|
||||
|
||||
Reference in New Issue
Block a user