diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-07-19 16:34:50 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-04 20:41:16 +0100 |
commit | 0f285318cdf3336aabda0cfa6bc306b2274f14e8 (patch) | |
tree | 3ff47def87ee9c18227c6d0b79428f3fc4498d63 /layout/style/nsCSSRuleProcessor.cpp | |
parent | 3019e0ff28bfd2d2a65b59501e582bb26356c6d7 (diff) | |
download | UXP-0f285318cdf3336aabda0cfa6bc306b2274f14e8.tar UXP-0f285318cdf3336aabda0cfa6bc306b2274f14e8.tar.gz UXP-0f285318cdf3336aabda0cfa6bc306b2274f14e8.tar.lz UXP-0f285318cdf3336aabda0cfa6bc306b2274f14e8.tar.xz UXP-0f285318cdf3336aabda0cfa6bc306b2274f14e8.zip |
Add -moz-windows-accent-color-is-dark
#31 point 4
Diffstat (limited to 'layout/style/nsCSSRuleProcessor.cpp')
-rw-r--r-- | layout/style/nsCSSRuleProcessor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layout/style/nsCSSRuleProcessor.cpp b/layout/style/nsCSSRuleProcessor.cpp index 4dc7ea1c8..8760a330e 100644 --- a/layout/style/nsCSSRuleProcessor.cpp +++ b/layout/style/nsCSSRuleProcessor.cpp @@ -1132,6 +1132,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); |