cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <...@git.apache.org>
Subject [GitHub] cordova-windows pull request #218: CB-12238 [Windows] Colorize titlebar to m...
Date Mon, 19 Dec 2016 16:01:09 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message