Github user daserge commented on a diff in the pull request:
https://github.com/apache/cordova-windows/pull/218#discussion_r93060350
--- Diff: cordova-js-src/splashscreen.js ---
@@ -203,10 +212,30 @@ function enableUserInteraction() {
document.body.style['-ms-content-zooming'] = origZooming;
}
+// Make title bg color match splashscreen bg color
+function colorizeTitleBar() {
+ var appView =
Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
+ if (appView.titleBar) {
+ titleInitialBgColor = appView.titleBar.backgroundColor;
+
+ appView.titleBar.backgroundColor = titleBgColor;
+ appView.titleBar.buttonBackgroundColor = titleBgColor;
+ }
+}
+
+// Revert title bg color
+function revertTitleBarColor() {
+ var appView =
Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
+ if (appView.titleBar) {
--- End diff --
The change only affects desktop projects and this check for
`appView.titleBar` is for Windows 8.1 OS only where titlebar isn't supported
(store apps are shown without chrome).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]