Add -moz-windows-accent-color-is-dark media query.

This is a boolean indicating whether the accent color should be considered "dark", i.e. needing bright text/controls.
This commit is contained in:
Pale Moon
2017-07-17 12:18:09 +02:00
committed by Roy Tam
parent 485f150648
commit 8e858c3e2a
5 changed files with 31 additions and 0 deletions
+5
View File
@@ -1192,6 +1192,11 @@ InitSystemMetrics()
sSystemMetrics->AppendElement(nsGkAtoms::windows_accent_color_applies);
}
rv = LookAndFeel::GetInt(LookAndFeel::eIntID_WindowsAccentColorIsDark, &metricResult);
if (NS_SUCCEEDED(rv) && metricResult) {
sSystemMetrics->AppendElement(nsGkAtoms::windows_accent_color_is_dark);
}
rv = LookAndFeel::GetInt(LookAndFeel::eIntID_DWMCompositor, &metricResult);
if (NS_SUCCEEDED(rv) && metricResult) {
sSystemMetrics->AppendElement(nsGkAtoms::windows_compositor);