diff system/System.h @ 1818:c5ee0746bdef background-mode

Determine whether a dark background is indicated
author Chris Cannam
date Fri, 17 Jan 2020 21:36:07 +0000
parents bd1a2cacd1e7
children 4eda6ba5b5d8
line wrap: on
line diff
--- a/system/System.h	Tue Jan 14 15:48:22 2020 +0000
+++ b/system/System.h	Fri Jan 17 21:36:07 2020 +0000
@@ -163,6 +163,11 @@
 // 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 OSThemeIsDark();
+
 extern void StoreStartupLocale();
 extern void RestoreStartupLocale();