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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.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 | « ui/views/controls/button/md_text_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index be383ce10c59d1e7dc8472ceb1677ab5af12f701..c04c365a1b18446fb53108b0e902ae633d674e36 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -281,9 +281,11 @@ MdTab::~MdTab() {}
void MdTab::OnStateChanged() {
ui::NativeTheme* theme = GetNativeTheme();
- SkColor font_color = selected()
- ? theme->GetSystemColor(ui::NativeTheme::kColorId_ProminentButtonColor)
- : theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonEnabledColor);
+ SkColor font_color =
+ selected() ? theme->GetSystemColor(
+ ui::NativeTheme::kColorId_ProminentButtonColor)
+ : theme->GetSystemColor(
+ ui::NativeTheme::kColorId_TextOnEnabledDialogButton);
title()->SetEnabledColor(font_color);
gfx::Font::Weight font_weight = gfx::Font::Weight::MEDIUM;
« no previous file with comments | « ui/views/controls/button/md_text_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698