summaryrefslogtreecommitdiffstats
path: root/widget/windows/nsWindow.cpp
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/nsWindow.cpp
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/nsWindow.cpp')
-rw-r--r--widget/windows/nsWindow.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp
index 2172f2aa0..dd4f359f7 100644
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -5084,12 +5084,19 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam,
case WM_SETTINGCHANGE:
{
- if (IsWin10OrLater() && mWindowType == eWindowType_invisible && lParam) {
+ if (lParam) {
auto lParamString = reinterpret_cast<const wchar_t*>(lParam);
- if (!wcscmp(lParamString, L"UserInteractionMode")) {
- nsCOMPtr<nsIWindowsUIUtils> uiUtils(do_GetService("@mozilla.org/windows-ui-utils;1"));
- if (uiUtils) {
- uiUtils->UpdateTabletModeState();
+ if (!wcscmp(lParamString, L"ImmersiveColorSet")) {
+ // WM_SYSCOLORCHANGE is not dispatched for accent color changes
+ OnSysColorChanged();
+ break;
+ }
+ if (IsWin10OrLater() && mWindowType == eWindowType_invisible) {
+ if (!wcscmp(lParamString, L"UserInteractionMode")) {
+ nsCOMPtr<nsIWindowsUIUtils> uiUtils(do_GetService("@mozilla.org/windows-ui-utils;1"));
+ if (uiUtils) {
+ uiUtils->UpdateTabletModeState();
+ }
}
}
}