comparison 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
comparison
equal deleted inserted replaced
1817:23d5cb3f9f38 1818:c5ee0746bdef
161 // Return a vague approximation to the number of free megabytes of 161 // Return a vague approximation to the number of free megabytes of
162 // disc space on the partition containing the given path. Return -1 162 // disc space on the partition containing the given path. Return -1
163 // if unknown. (Hence signed return type) 163 // if unknown. (Hence signed return type)
164 extern ssize_t GetDiscSpaceMBAvailable(const char *path); 164 extern ssize_t GetDiscSpaceMBAvailable(const char *path);
165 165
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
168 // is unknown.
169 extern bool OSThemeIsDark();
170
166 extern void StoreStartupLocale(); 171 extern void StoreStartupLocale();
167 extern void RestoreStartupLocale(); 172 extern void RestoreStartupLocale();
168 173
169 #include <cmath> 174 #include <cmath>
170 175