|
|
|
@ -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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|