Skip to content

Commit

Permalink
Fixed a WP10 accent color issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseanxu committed Jun 8, 2015
1 parent b69526f commit 6164967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/WinJS/_Accents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ var theme = _Global.getComputedStyle(tag).opacity;
isDarkTheme = theme === "0";
tag.parentElement.removeChild(tag);

if (_WinRT.Windows.UI.ViewManagement.UISettings && ("oncolorvalueschanged" in _WinRT.Windows.UI.ViewManagement.UISettings.prototype)) {
try {
UISettings = new _WinRT.Windows.UI.ViewManagement.UISettings();
UISettings.addEventListener("colorvalueschanged", handleColorsChanged);
handleColorsChanged();
} else {
} catch (e) {
// No WinRT - use hardcoded blue accent color
// The order of the colors align with the ColorTypes enum values
colors.push(
Expand Down

0 comments on commit 6164967

Please sign in to comment.