Fix Android statusbar content color
This commit is contained in:
parent
00ae16d28c
commit
3707d0c064
@ -20,7 +20,9 @@
|
||||
<icon src="res/logo.png" />
|
||||
<platform name="android">
|
||||
<allow-intent href="market:*" />
|
||||
<preference name="HeaderColor" value="#0D87F6" />
|
||||
<preference name="HeaderColor" value="#82b1ff" />
|
||||
<preference name="StatusBarBackgroundColor" value="#82b1ff" />
|
||||
<preference name="StatusBarStyle" value="default" />
|
||||
<!-- <resource-file src="src/android/BackgroundFetchHeadlessTask.java" target="app/src/main/java/com/transistorsoft/cordova/backgroundfetch/BackgroundFetchHeadlessTask.java" /> -->
|
||||
<!-- <resource-file src="/res/android/drawable/ic_launcher_background.xml" target="/app/src/main/res/drawable/ic_launcher_background.xml" />
|
||||
<resource-file src="/res/android/drawable/ic_launcher_foreground.xml" target="/app/src/main/res/drawable/ic_launcher_foreground.xml" />
|
||||
|
@ -95,8 +95,8 @@ function setAppTheme(theme) {
|
||||
if (theme == "light") {
|
||||
$("#app").removeClass("theme-dark");
|
||||
if (platform_type == "cordova" && cordova.platformId == 'android' && typeof StatusBar !== 'undefined') {
|
||||
StatusBar.styleDarkContent();
|
||||
StatusBar.backgroundColorByHexString("#D0F2FC");
|
||||
StatusBar.styleDefault();
|
||||
StatusBar.backgroundColorByHexString("#82b1ff");
|
||||
}
|
||||
} else if (theme == "dark") {
|
||||
$("#app").addClass("theme-dark");
|
||||
|
Loading…
x
Reference in New Issue
Block a user