diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-07-19 16:24:08 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-04 20:40:20 +0100 |
commit | 3019e0ff28bfd2d2a65b59501e582bb26356c6d7 (patch) | |
tree | d3a5f32d620fe242aa518a8823edb78b5b32851b /widget/windows/nsLookAndFeel.h | |
parent | 3af2c1c8795312d6cbb947b50bc1912df0589e0e (diff) | |
download | UXP-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.h | 8 |
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 |