Screw around with statusbar stuff

master
Skylar Ittner 2 years ago
parent dbbd4aca27
commit 45c9aaf8b6

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.netsyms.helenaexpress.app" version="1.9.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.netsyms.helenaexpress.app" version="1.9.4" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name short="Helena Express">Helena Express</name>
<description>
</description>
@ -35,6 +35,7 @@
<preference name="AutoHideSplashScreen" value="true" />
</platform>
<platform name="android">
<preference name="StatusBarOverlaysWebView" value="false" />
<allow-intent href="market:*" />
<preference name="AndroidLaunchMode" value="singleTask" />
<resource-file src="/res/android/drawable/ic_launcher_background.xml" target="/app/src/main/res/drawable/ic_launcher_background.xml" />
@ -72,7 +73,7 @@
<splash density="port-night-xxxhdpi" src="res/android/splash-dark/splash-port-xxxhdpi.png" />
</platform>
<platform name="ios">
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="DisallowOverscroll" value="true" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />

@ -1,7 +1,7 @@
{
"name": "com.netsyms.helenaexpress.app",
"displayName": "Helena Express",
"version": "1.9.3",
"version": "1.9.4",
"description": "App to request and track shipping services",
"product_string": "Helena Express",
"main": "www/index.html",

@ -27,7 +27,14 @@ var app = new Framework7({
tapHold: true
},
statusbar: {
enabled: false
enabled: true,
iosOverlaysWebView: true,
androidOverlaysWebView: false,
iosBackgroundColor: "#e8f9fe",
androidBackgroundColor: "#e8f9fe",
scrollTopOnClick: false,
iosTextColor: "black",
androidTextColor: "black"
},
init: false,
initOnDeviceReady: false,
@ -110,14 +117,18 @@ function setAppTheme(theme) {
if (theme == "light") {
$("body").removeClass("dark");
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
StatusBar.backgroundColorByHexString("#e8f9fe");
StatusBar.styleDefault();
app.statusbar.setTextColor("black");
app.statusbar.setBackgroundColor("#e8f9fe");
//StatusBar.backgroundColorByHexString("#e8f9fe");
//StatusBar.styleDefault();
}
} else if (theme == "dark") {
$("body").addClass("dark");
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
StatusBar.backgroundColorByName("black");
StatusBar.styleLightContent();
app.statusbar.setTextColor("white");
app.statusbar.setBackgroundColor("#000000");
//StatusBar.backgroundColorByName("black");
//StatusBar.styleLightContent();
}
}
}

@ -1,6 +1,6 @@
{
"name": "HelenaExpressApp",
"version": "1.9.3",
"version": "1.9.4",
"main": "index.html",
"license": "MPL-2.0",
"dependencies": {

Loading…
Cancel
Save