diff options
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 |