More statusbar changes
This commit is contained in:
parent
f0d3b2b4f6
commit
6009168891
@ -59,13 +59,12 @@ function initCordova() {
|
|||||||
if (localStorage.getItem("darktheme") == "true") {
|
if (localStorage.getItem("darktheme") == "true") {
|
||||||
$("#app").addClass("theme-dark");
|
$("#app").addClass("theme-dark");
|
||||||
if (cordova.platformId == 'android') {
|
if (cordova.platformId == 'android') {
|
||||||
StatusBar.styleDefault();
|
StatusBar.styleBlackOpaque();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$("#app").removeClass("theme-dark");
|
$("#app").removeClass("theme-dark");
|
||||||
if (cordova.platformId == 'android') {
|
if (cordova.platformId == 'android') {
|
||||||
StatusBar.backgroundColorByHexString("#D32F2F");
|
StatusBar.styleDefault();
|
||||||
StatusBar.styleLightContent();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user