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

Unified Diff: ui/native_theme/native_theme_mac.mm

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 | « ui/native_theme/native_theme_dark_aura.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_mac.mm
diff --git a/ui/native_theme/native_theme_mac.mm b/ui/native_theme/native_theme_mac.mm
index a88fafc9fc404c36898cbcb08279b01f01c71d01..3773dfd672d4f658a56aa1f8a6b57a1d0369a09d 100644
--- a/ui/native_theme/native_theme_mac.mm
+++ b/ui/native_theme/native_theme_mac.mm
@@ -179,7 +179,7 @@ SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const {
return NSSystemColorToSkColor([NSColor controlColor]);
// Buttons and labels.
- case kColorId_ButtonEnabledColor:
+ case kColorId_TextOnEnabledDialogButton:
case kColorId_LabelEnabledColor:
return NSSystemColorToSkColor([NSColor controlTextColor]);
// NSColor doesn't offer a color for prominent buttons. Use the Aura color,
@@ -187,7 +187,7 @@ SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const {
// to draw buttons that are given a \n key equivalent.
case kColorId_ProminentButtonColor:
return ApplySystemControlTint(GetAuraColor(color_id, this));
- case kColorId_ButtonDisabledColor:
+ case kColorId_TextOnDisabledDialogButton:
case kColorId_LabelDisabledColor:
return NSSystemColorToSkColor([NSColor disabledControlTextColor]);
case kColorId_ButtonHoverColor:
« no previous file with comments | « ui/native_theme/native_theme_dark_aura.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698