summaryrefslogtreecommitdiffstats
path: root/widget/windows/nsLookAndFeel.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-07-19 16:24:08 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-04 20:40:20 +0100
commit3019e0ff28bfd2d2a65b59501e582bb26356c6d7 (patch)
treed3a5f32d620fe242aa518a8823edb78b5b32851b /widget/windows/nsLookAndFeel.h
parent3af2c1c8795312d6cbb947b50bc1912df0589e0e (diff)
downloadUXP-3019e0ff28bfd2d2a65b59501e582bb26356c6d7.tar
UXP-3019e0ff28bfd2d2a65b59501e582bb26356c6d7.tar.gz
UXP-3019e0ff28bfd2d2a65b59501e582bb26356c6d7.tar.lz
UXP-3019e0ff28bfd2d2a65b59501e582bb26356c6d7.tar.xz
UXP-3019e0ff28bfd2d2a65b59501e582bb26356c6d7.zip
Split out the check for accent color luminance.
Diffstat (limited to 'widget/windows/nsLookAndFeel.h')
-rw-r--r--widget/windows/nsLookAndFeel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/widget/windows/nsLookAndFeel.h b/widget/windows/nsLookAndFeel.h
index 29b6f4b78..6200541f5 100644
--- a/widget/windows/nsLookAndFeel.h
+++ b/widget/windows/nsLookAndFeel.h
@@ -68,6 +68,14 @@ private:
nsresult GetAccentColor(nscolor& aColor);
/**
+ * Determines whether the Windows accent color is considered dark
+ * with a threshhold value and formula that are specified in the
+ * UWP guidelines.
+ * See: https://docs.microsoft.com/en-us/windows/uwp/style/color
+ */
+ bool AccentColorIsDark(nscolor aColor);
+
+ /**
* If the Windows accent color from the Windows settings is set
* to apply to the title bar, this computes the color that should
* be used for text that is to be written over a background that has