Bug 1700294 - Introduce LookAndFeel::SystemColorScheme(). r=mstange

Trivial, but maybe worth splitting.

Differential Revision: https://phabricator.services.mozilla.com/D110727
This commit is contained in:
Emilio Cobos Álvarez 2021-04-03 01:16:59 +00:00
Родитель a7c7897c17
Коммит 65b4e0feb5
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -425,6 +425,11 @@ class LookAndFeel {
// This is currently ignored (but won't be for long).
enum class ColorScheme : uint8_t { Light, Dark };
static ColorScheme SystemColorScheme() {
return GetInt(IntID::SystemUsesDarkTheme) ? ColorScheme::Dark
: ColorScheme::Light;
}
// Whether standins for native colors should be used (that is, colors faked,
// taken from win7, mostly). This forces light appearance, effectively.
enum class UseStandins : bool { No, Yes };