diff system/System.h @ 1820:fc18ce2d99d7 background-mode

Add OSQueryAccentColour
author Chris Cannam
date Thu, 23 Jan 2020 15:43:30 +0000
parents 4eda6ba5b5d8
children e5d0ea9ac8f1
line wrap: on
line diff
--- a/system/System.h	Mon Jan 20 17:17:45 2020 +0000
+++ b/system/System.h	Thu Jan 23 15:43:30 2020 +0000
@@ -168,6 +168,12 @@
 // is unknown.
 extern bool OSReportsDarkThemeActive();
 
+// Return true if the OS desktop reports an accent colour to go with
+// the current theme; if so, also return by reference the r, g, and b
+// components of the colour (range 0-255). Return false if we can't
+// query such a thing.
+extern bool OSQueryAccentColour(int &r, int &g, int &b);
+
 extern void StoreStartupLocale();
 extern void RestoreStartupLocale();