Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

CB-12238 [Windows] Colorize titlebar to match splash bg color #218

Merged
merged 1 commit into from
Dec 20, 2016
Merged

CB-12238 [Windows] Colorize titlebar to match splash bg color #218

merged 1 commit into from
Dec 20, 2016

Conversation

daserge
Copy link
Contributor

@daserge daserge commented Dec 13, 2016

Platforms affected

Windows

What does this PR do?

Colorize titlebar to match splash background color

What testing has been done on this change?

Manual testing

Checklist

  • Reported an issue in the JIRA database
  • Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
  • Added automated test coverage as appropriate for this change.

@codecov-io
Copy link

codecov-io commented Dec 13, 2016

Current coverage is 76.22% (diff: 100%)

Merging #218 into master will not change coverage

@@             master       #218   diff @@
==========================================
  Files            16         16          
  Lines          2204       2204          
  Methods         412        412          
  Messages          0          0          
  Branches        433        433          
==========================================
  Hits           1680       1680          
  Misses          524        524          
  Partials          0          0          

Powered by Codecov. Last update b021dc3...1cf27a9

// Revert title bg color
function revertTitleBarColor() {
var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
if (appView.titleBar) {
Copy link
Member

@vladimir-kotikov vladimir-kotikov Dec 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this guaranteed that title bar would exist when you're leaving fullscreen? otherwise you may end up not reverting title bar color due to this condition. I'm mostly speculating and trying to find really edge cases, but still. Perhaps might be better to subscribe to ApplicationView.VisibleBoundsChanged and revert the color in the handler?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@daserge
Copy link
Contributor Author

daserge commented Dec 20, 2016

@vladimir-kotikov, can I merge this?

@vladimir-kotikov
Copy link
Member

Sure, 🚢 it

@asfgit asfgit merged commit 1cf27a9 into apache:master Dec 20, 2016
@daserge daserge deleted the CB-12238 branch December 20, 2016 12:36
@brodycj
Copy link

brodycj commented Jan 18, 2018

FYI This change introduced a crash on Windows 8.1 as discussed in CB-12784 (https://issues.apache.org/jira/browse/CB-12784).

@brodycj
Copy link

brodycj commented Jan 19, 2018

FYI This change introduced a crash on Windows 8.1 as discussed in CB-12784 (https://issues.apache.org/jira/browse/CB-12784).

Discussed along with a BUG FIX in CB-12784 (https://issues.apache.org/jira/browse/CB-12784) / #232 which is STILL NOT fully integrated as discussed in CB-13175 (https://issues.apache.org/jira/browse/CB-13175) / #239

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants