Screw around with statusbar stuff
This commit is contained in:
parent
dbbd4aca27
commit
45c9aaf8b6
@ -1,5 +1,5 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?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>
|
<name short="Helena Express">Helena Express</name>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
@ -35,6 +35,7 @@
|
|||||||
<preference name="AutoHideSplashScreen" value="true" />
|
<preference name="AutoHideSplashScreen" value="true" />
|
||||||
</platform>
|
</platform>
|
||||||
<platform name="android">
|
<platform name="android">
|
||||||
|
<preference name="StatusBarOverlaysWebView" value="false" />
|
||||||
<allow-intent href="market:*" />
|
<allow-intent href="market:*" />
|
||||||
<preference name="AndroidLaunchMode" value="singleTask" />
|
<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" />
|
<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" />
|
<splash density="port-night-xxxhdpi" src="res/android/splash-dark/splash-port-xxxhdpi.png" />
|
||||||
</platform>
|
</platform>
|
||||||
<platform name="ios">
|
<platform name="ios">
|
||||||
<preference name="StatusBarOverlaysWebView" value="false" />
|
<preference name="StatusBarOverlaysWebView" value="true" />
|
||||||
<preference name="DisallowOverscroll" value="true" />
|
<preference name="DisallowOverscroll" value="true" />
|
||||||
<allow-intent href="itms:*" />
|
<allow-intent href="itms:*" />
|
||||||
<allow-intent href="itms-apps:*" />
|
<allow-intent href="itms-apps:*" />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "com.netsyms.helenaexpress.app",
|
"name": "com.netsyms.helenaexpress.app",
|
||||||
"displayName": "Helena Express",
|
"displayName": "Helena Express",
|
||||||
"version": "1.9.3",
|
"version": "1.9.4",
|
||||||
"description": "App to request and track shipping services",
|
"description": "App to request and track shipping services",
|
||||||
"product_string": "Helena Express",
|
"product_string": "Helena Express",
|
||||||
"main": "www/index.html",
|
"main": "www/index.html",
|
||||||
|
@ -27,7 +27,14 @@ var app = new Framework7({
|
|||||||
tapHold: true
|
tapHold: true
|
||||||
},
|
},
|
||||||
statusbar: {
|
statusbar: {
|
||||||
enabled: false
|
enabled: true,
|
||||||
|
iosOverlaysWebView: true,
|
||||||
|
androidOverlaysWebView: false,
|
||||||
|
iosBackgroundColor: "#e8f9fe",
|
||||||
|
androidBackgroundColor: "#e8f9fe",
|
||||||
|
scrollTopOnClick: false,
|
||||||
|
iosTextColor: "black",
|
||||||
|
androidTextColor: "black"
|
||||||
},
|
},
|
||||||
init: false,
|
init: false,
|
||||||
initOnDeviceReady: false,
|
initOnDeviceReady: false,
|
||||||
@ -110,14 +117,18 @@ function setAppTheme(theme) {
|
|||||||
if (theme == "light") {
|
if (theme == "light") {
|
||||||
$("body").removeClass("dark");
|
$("body").removeClass("dark");
|
||||||
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
||||||
StatusBar.backgroundColorByHexString("#e8f9fe");
|
app.statusbar.setTextColor("black");
|
||||||
StatusBar.styleDefault();
|
app.statusbar.setBackgroundColor("#e8f9fe");
|
||||||
|
//StatusBar.backgroundColorByHexString("#e8f9fe");
|
||||||
|
//StatusBar.styleDefault();
|
||||||
}
|
}
|
||||||
} else if (theme == "dark") {
|
} else if (theme == "dark") {
|
||||||
$("body").addClass("dark");
|
$("body").addClass("dark");
|
||||||
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
if (platform_type == "cordova" && typeof StatusBar !== 'undefined') {
|
||||||
StatusBar.backgroundColorByName("black");
|
app.statusbar.setTextColor("white");
|
||||||
StatusBar.styleLightContent();
|
app.statusbar.setBackgroundColor("#000000");
|
||||||
|
//StatusBar.backgroundColorByName("black");
|
||||||
|
//StatusBar.styleLightContent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "HelenaExpressApp",
|
"name": "HelenaExpressApp",
|
||||||
"version": "1.9.3",
|
"version": "1.9.4",
|
||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user