summaryrefslogtreecommitdiffstats
path: root/widget/windows/nsLookAndFeel.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-07-19 16:34:50 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-04 20:41:16 +0100
commit0f285318cdf3336aabda0cfa6bc306b2274f14e8 (patch)
tree3ff47def87ee9c18227c6d0b79428f3fc4498d63 /widget/windows/nsLookAndFeel.cpp
parent3019e0ff28bfd2d2a65b59501e582bb26356c6d7 (diff)
downloadUXP-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 'widget/windows/nsLookAndFeel.cpp')
-rw-r--r--widget/windows/nsLookAndFeel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/widget/windows/nsLookAndFeel.cpp b/widget/windows/nsLookAndFeel.cpp
index 5c0358bd9..e649802b1 100644
--- a/widget/windows/nsLookAndFeel.cpp
+++ b/widget/windows/nsLookAndFeel.cpp
@@ -442,6 +442,14 @@ nsLookAndFeel::GetIntImpl(IntID aID, int32_t &aResult)
aResult = NS_SUCCEEDED(GetAccentColor(unused)) ? 1 : 0;
}
break;
+ case eIntID_WindowsAccentColorIsDark:
+ {
+ nscolor accentColor;
+ if (NS_SUCCEEDED(GetAccentColor(accentColor))) {
+ aResult = AccentColorIsDark(accentColor) ? 1 : 0;
+ }
+ }
+ break;
case eIntID_WindowsGlass:
// Aero Glass is only available prior to Windows 8 when DWM is used.
aResult = (nsUXThemeData::CheckForCompositor() && !IsWin8OrLater());