Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Unified Diff: ui/native_theme/common_theme.cc

Issue 2961223002: Rename native theme color constants relating to text on dialog buttons
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk3.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/common_theme.cc
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc
index 09216e0068e53b6723ab93c9ff51ba1495114cae..d038cfb5fa00b7726ddb5192a69a44ae345903bc 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -139,7 +139,7 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
return kDialogBackgroundColor;
// Buttons
- case NativeTheme::kColorId_ButtonEnabledColor:
+ case NativeTheme::kColorId_TextOnEnabledDialogButton:
case NativeTheme::kColorId_ButtonHoverColor:
return kButtonEnabledColor;
// TODO(estade): remove the BlueButton colors.
@@ -152,11 +152,11 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
return kBlueButtonShadowColor;
case NativeTheme::kColorId_ProminentButtonColor:
return kProminentButtonColor;
- case NativeTheme::kColorId_TextOnProminentButtonColor:
+ case NativeTheme::kColorId_TextOnProminentDialogButton:
return kProminentButtonTextColor;
case NativeTheme::kColorId_ButtonPressedShade:
return SK_ColorTRANSPARENT;
- case NativeTheme::kColorId_ButtonDisabledColor:
+ case NativeTheme::kColorId_TextOnDisabledDialogButton:
return kDisabledMenuItemForegroundColor;
// MenuItem
@@ -183,7 +183,7 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
return kButtonEnabledColor;
case NativeTheme::kColorId_LabelDisabledColor:
return base_theme->GetSystemColor(
- NativeTheme::kColorId_ButtonDisabledColor);
+ NativeTheme::kColorId_TextOnDisabledDialogButton);
case NativeTheme::kColorId_LabelTextSelectionColor:
return kTextSelectionColor;
case NativeTheme::kColorId_LabelTextSelectionBackgroundFocused:
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk3.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698