Maybe get status bar color right the third time?
This commit is contained in:
parent
6009168891
commit
6192c47840
@ -23,7 +23,7 @@
|
|||||||
<preference name="android-targetSdkVersion" value="27" />
|
<preference name="android-targetSdkVersion" value="27" />
|
||||||
<allow-intent href="market:*" />
|
<allow-intent href="market:*" />
|
||||||
<preference name="HeaderColor" value="#F44336" />
|
<preference name="HeaderColor" value="#F44336" />
|
||||||
<preference name="StatusBarBackgroundColor" value="#D32F2F" />
|
<preference name="StatusBarBackgroundColor" value="#E0E0E0" />
|
||||||
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
||||||
<application android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" />
|
<application android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" />
|
||||||
</edit-config>
|
</edit-config>
|
||||||
|
@ -45,10 +45,6 @@ function initCordova() {
|
|||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
document.addEventListener("deviceready", function () {
|
document.addEventListener("deviceready", function () {
|
||||||
if (cordova.platformId == 'android') {
|
|
||||||
StatusBar.backgroundColorByHexString("#D32F2F");
|
|
||||||
StatusBar.styleLightContent();
|
|
||||||
}
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
openBrowser = function (url) {
|
openBrowser = function (url) {
|
||||||
@ -60,11 +56,13 @@ function initCordova() {
|
|||||||
$("#app").addClass("theme-dark");
|
$("#app").addClass("theme-dark");
|
||||||
if (cordova.platformId == 'android') {
|
if (cordova.platformId == 'android') {
|
||||||
StatusBar.styleBlackOpaque();
|
StatusBar.styleBlackOpaque();
|
||||||
|
StatusBar.backgroundColorByHexString("#000000");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$("#app").removeClass("theme-dark");
|
$("#app").removeClass("theme-dark");
|
||||||
if (cordova.platformId == 'android') {
|
if (cordova.platformId == 'android') {
|
||||||
StatusBar.styleDefault();
|
StatusBar.styleDefault();
|
||||||
|
StatusBar.backgroundColorByHexString("#E0E0E0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user