comparison 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
comparison
equal deleted inserted replaced
1817:23d5cb3f9f38 1822:0bc6caf87658
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 OSReportsDarkThemeActive();
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
166 extern void StoreStartupLocale(); 177 extern void StoreStartupLocale();
167 extern void RestoreStartupLocale(); 178 extern void RestoreStartupLocale();
168 179
169 #include <cmath> 180 #include <cmath>
170 181