mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user