title: How to update a WinJS UWP app after the Windows system accent color changes
body: <p>I have 2 variables, <code>accentColor</code>, and <code>backgroundColor</code>. <code>backgroundColor</code> updates as expected when I change the Windows settings from Light to Dark mode, but <code>accentColor</code> does not change when I choose a new Windows accent color.</p>
  
  <pre><code>var uiSettings = new Windows.UI.ViewManagement.UISettings(),
     accentColor = uiSettings.getColorValue(Windows.UI.ViewManagement.UIColorType.accent),
     backgroundColor = uiSettings.getColorValue(Windows.UI.ViewManagement.UIColorType.background);
  </code></pre>
  
  <p>Therefore I cannot update the UI to reflect the user's choice. Is this a bug? Is there a work around?</p>
  
  <p>I am checking them on the visibilitychanged event.</p>
  
  <pre><code>document.addEventListener("visibilitychange", onVisibilityChanged);
  </code></pre>
  
  <p>This occurs on Windows 10 Pro 1709 build 16299.309 but surprisingly works properly on Windows 10 Mobile!</p>