Mercurial > hg > svcore
diff system/System.h @ 1822:0bc6caf87658
Merge from branch background-mode
author | Chris Cannam |
---|---|
date | Fri, 24 Jan 2020 15:10:35 +0000 |
parents | fc18ce2d99d7 |
children | e5d0ea9ac8f1 |
line wrap: on
line diff
--- a/system/System.h Tue Jan 14 15:48:22 2020 +0000 +++ b/system/System.h Fri Jan 24 15:10:35 2020 +0000 @@ -163,6 +163,17 @@ // if unknown. (Hence signed return type) extern ssize_t GetDiscSpaceMBAvailable(const char *path); +// Return true if the OS desktop is set to use a dark mode +// theme. Return false if it is set to a light theme or if the theme +// 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();