summaryrefslogtreecommitdiffstats
path: root/ui/native_theme
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-19 10:40:42 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-19 10:40:42 +0000
commitc64dc6e0bbaab77e438e6b736c7f4507b1fb10b1 (patch)
treeb7be382b47f98e15386901274a986a6040d451ba /ui/native_theme
parent5e32d57a7504067fa99bd3e5154dd178e03d4db4 (diff)
downloadchromium_src-c64dc6e0bbaab77e438e6b736c7f4507b1fb10b1.zip
chromium_src-c64dc6e0bbaab77e438e6b736c7f4507b1fb10b1.tar.gz
chromium_src-c64dc6e0bbaab77e438e6b736c7f4507b1fb10b1.tar.bz2
Invert the dialog background color for Windows high contrast.
Invert the hardcoded kColorId_DialogBackground as needed. See before/after pics at http://crbug.com/234681#c7 (note that I'm addressing the new button style separately) BUG=234681,166075 TEST=Dialogs are legible in Windows high contrast themes. R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/17112017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/native_theme')
-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