Make Android statusbar darker
This commit is contained in:
parent
acd7d915cf
commit
2ca483a616
@ -102,8 +102,12 @@ function setAppTheme(theme) {
|
|||||||
$("#app").removeClass("theme-dark");
|
$("#app").removeClass("theme-dark");
|
||||||
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
||||||
StatusBar.styleDefault();
|
StatusBar.styleDefault();
|
||||||
|
if (device.platform == "Android") {
|
||||||
|
StatusBar.backgroundColorByHexString("#9ebfc9");
|
||||||
|
} else {
|
||||||
StatusBar.backgroundColorByHexString("#d0f2fc");
|
StatusBar.backgroundColorByHexString("#d0f2fc");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (theme == "dark") {
|
} else if (theme == "dark") {
|
||||||
$("#app").addClass("theme-dark");
|
$("#app").addClass("theme-dark");
|
||||||
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user