diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 07:42:42 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 07:42:42 +0000 |
commit | 8d29e7cc4db2fd1426001c66b193ee66baaf8c82 (patch) | |
tree | 1189ff510230514648f95645ffb1b596a814b91d /ui/native_theme | |
parent | a109fd05fac9af35d219de6e428530180cf582b2 (diff) | |
download | chromium_src-8d29e7cc4db2fd1426001c66b193ee66baaf8c82.zip chromium_src-8d29e7cc4db2fd1426001c66b193ee66baaf8c82.tar.gz chromium_src-8d29e7cc4db2fd1426001c66b193ee66baaf8c82.tar.bz2 |
Don't put a text shadow on blue buttons in gtk theme mode.
BUG=381541
Review URL: https://codereview.chromium.org/360123003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/native_theme')
-rw-r--r-- | ui/native_theme/common_theme.cc | 3 | ||||
-rw-r--r-- | ui/native_theme/native_theme.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc index d1797f9..0864f49 100644 --- a/ui/native_theme/common_theme.cc +++ b/ui/native_theme/common_theme.cc @@ -39,6 +39,7 @@ const SkColor kBlueButtonEnabledColor = SK_ColorWHITE; const SkColor kBlueButtonDisabledColor = SK_ColorWHITE; const SkColor kBlueButtonPressedColor = SK_ColorWHITE; const SkColor kBlueButtonHoverColor = SK_ColorWHITE; +const SkColor kBlueButtonShadowColor = SkColorSetRGB(0x53, 0x8C, 0xEA); } // namespace @@ -101,6 +102,8 @@ bool CommonThemeGetSystemColor(NativeTheme::ColorId color_id, SkColor* color) { break; case NativeTheme::kColorId_BlueButtonHoverColor: *color = kBlueButtonHoverColor; + case NativeTheme::kColorId_BlueButtonShadowColor: + *color = kBlueButtonShadowColor; break; default: return false; diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h index 8dc14f8..26cab20 100644 --- a/ui/native_theme/native_theme.h +++ b/ui/native_theme/native_theme.h @@ -258,6 +258,7 @@ class NATIVE_THEME_EXPORT NativeTheme { kColorId_BlueButtonDisabledColor, kColorId_BlueButtonPressedColor, kColorId_BlueButtonHoverColor, + kColorId_BlueButtonShadowColor, // MenuItem kColorId_EnabledMenuItemForegroundColor, kColorId_DisabledMenuItemForegroundColor, |