summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/native_theme/native_theme_win.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index e0ff0f1..381d807 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -28,6 +28,7 @@
#include "ui/gfx/gdi_util.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/rect_conversions.h"
+#include "ui/gfx/sys_color_change_listener.h"
#include "ui/native_theme/common_theme.h"
// This was removed from Winvers.h but is still used.
@@ -499,6 +500,8 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
// Dialogs
case kColorId_DialogBackground:
+ if (gfx::IsInvertedColorScheme())
+ return color_utils::InvertColor(kDialogBackgroundColor);
return kDialogBackgroundColor;
// FocusableBorder