summaryrefslogtreecommitdiffstats
path: root/widget/windows/nsLookAndFeel.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-07-19 13:24:55 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-04 20:37:56 +0100
commitf843f02860d8acd709fe89bfa891892d907de81a (patch)
tree9d7f340f291de3f125b69486b57b7c24054b47ca /widget/windows/nsLookAndFeel.h
parentac663083950b2e00573395d68348302df94e3ac1 (diff)
downloadUXP-f843f02860d8acd709fe89bfa891892d907de81a.tar
UXP-f843f02860d8acd709fe89bfa891892d907de81a.tar.gz
UXP-f843f02860d8acd709fe89bfa891892d907de81a.tar.lz
UXP-f843f02860d8acd709fe89bfa891892d907de81a.tar.xz
UXP-f843f02860d8acd709fe89bfa891892d907de81a.zip
Add -moz-win-accentcolor(text)
#31 points 1 and 2
Diffstat (limited to 'widget/windows/nsLookAndFeel.h')
-rw-r--r--widget/windows/nsLookAndFeel.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/widget/windows/nsLookAndFeel.h b/widget/windows/nsLookAndFeel.h
index bc2d158b6..29b6f4b78 100644
--- a/widget/windows/nsLookAndFeel.h
+++ b/widget/windows/nsLookAndFeel.h
@@ -6,6 +6,7 @@
#ifndef __nsLookAndFeel
#define __nsLookAndFeel
#include "nsXPLookAndFeel.h"
+#include "nsIWindowsRegKey.h"
/*
* Gesture System Metrics
@@ -59,7 +60,25 @@ public:
virtual void SetIntCacheImpl(const nsTArray<LookAndFeelInt>& aLookAndFeelIntCache);
private:
+ /**
+ * Fetches the Windows accent color from the Windows settings if
+ * the accent color is set to apply to the title bar, otherwise
+ * returns an error code.
+ */
+ nsresult GetAccentColor(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
+ * the accent color. Otherwise, (if the accent color should not
+ * apply to the title bar) this returns an error code.
+ */
+ nsresult GetAccentColorText(nscolor& aColor);
+
int32_t mUseAccessibilityTheme;
+
+ nsCOMPtr<nsIWindowsRegKey> mDwmKey;
};
#endif