summaryrefslogtreecommitdiffstats
path: root/widget/windows/nsLookAndFeel.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-07-19 13:11:28 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-04 20:36:05 +0100
commitac663083950b2e00573395d68348302df94e3ac1 (patch)
tree132d04993a49b2b5b4da21189bf0c686a04fce9d /widget/windows/nsLookAndFeel.cpp
parentfc7d9fade54dfbe275c4808dabe30a19415082e0 (diff)
downloadUXP-ac663083950b2e00573395d68348302df94e3ac1.tar
UXP-ac663083950b2e00573395d68348302df94e3ac1.tar.gz
UXP-ac663083950b2e00573395d68348302df94e3ac1.tar.lz
UXP-ac663083950b2e00573395d68348302df94e3ac1.tar.xz
UXP-ac663083950b2e00573395d68348302df94e3ac1.zip
Add `@media(-moz-windows-accent-color-applies)`
#31 point 3
Diffstat (limited to 'widget/windows/nsLookAndFeel.cpp')
-rw-r--r--widget/windows/nsLookAndFeel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/widget/windows/nsLookAndFeel.cpp b/widget/windows/nsLookAndFeel.cpp
index 7c427ac9f..60e351323 100644
--- a/widget/windows/nsLookAndFeel.cpp
+++ b/widget/windows/nsLookAndFeel.cpp
@@ -419,6 +419,12 @@ nsLookAndFeel::GetIntImpl(IntID aID, int32_t &aResult)
case eIntID_DWMCompositor:
aResult = nsUXThemeData::CheckForCompositor();
break;
+ case eIntID_WindowsAccentColorApplies:
+ {
+ nscolor unused;
+ aResult = NS_SUCCEEDED(GetAccentColor(unused)) ? 1 : 0;
+ }
+ break;
case eIntID_WindowsGlass:
// Aero Glass is only available prior to Windows 8 when DWM is used.
aResult = (nsUXThemeData::CheckForCompositor() && !IsWin8OrLater());