# HG changeset patch # User Chris Cannam # Date 1579869535 0 # Node ID 472865574b1ab51dfb752e635dc8d7acd4747332 # Parent fc18ce2d99d7d717fd7c377eb31002c9992f7bbb Use slightly lighter version of accent colour in dark mode - it generally seems more appropriate in practice diff -r fc18ce2d99d7 -r 472865574b1a system/System.cpp --- a/system/System.cpp Thu Jan 23 15:43:30 2020 +0000 +++ b/system/System.cpp Fri Jan 24 12:38:55 2020 +0000 @@ -359,11 +359,13 @@ SVCERR << "OSQueryAccentColour() called" << endl; #ifdef _MSC_VER using namespace winrt::Windows::UI::ViewManagement; + bool dark = OSReportsDarkThemeActive(); UISettings settings; - auto background = settings.GetColorValue(UIColorType::Accent); - r = background.R; - g = background.G; - b = background.B; + auto accent = settings.GetColorValue + (dark ? UIColorType::AccentLight1 : UIColorType::Accent); + r = accent.R; + g = accent.G; + b = accent.B; return true; #endif return false;