comparison 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
comparison
equal deleted inserted replaced
1819:4eda6ba5b5d8 1820:fc18ce2d99d7
166 // Return true if the OS desktop is set to use a dark mode 166 // Return true if the OS desktop is set to use a dark mode
167 // theme. Return false if it is set to a light theme or if the theme 167 // theme. Return false if it is set to a light theme or if the theme
168 // is unknown. 168 // is unknown.
169 extern bool OSReportsDarkThemeActive(); 169 extern bool OSReportsDarkThemeActive();
170 170
171 // Return true if the OS desktop reports an accent colour to go with
172 // the current theme; if so, also return by reference the r, g, and b
173 // components of the colour (range 0-255). Return false if we can't
174 // query such a thing.
175 extern bool OSQueryAccentColour(int &r, int &g, int &b);
176
171 extern void StoreStartupLocale(); 177 extern void StoreStartupLocale();
172 extern void RestoreStartupLocale(); 178 extern void RestoreStartupLocale();
173 179
174 #include <cmath> 180 #include <cmath>
175 181