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

Unified Diff: ui/views/controls/button/toggle_button.cc

Issue 2375543003: Add SetProminent() to MdTextButton to create blue buttons. (Closed)
Patch Set: Fix nits. Created 4 years, 3 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') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/toggle_button.cc
diff --git a/ui/views/controls/button/toggle_button.cc b/ui/views/controls/button/toggle_button.cc
index 41c3d386d18644dc7191d2466345778a7462ef8e..30bf562a54887ce6a3b62c24af0408b80104c884 100644
--- a/ui/views/controls/button/toggle_button.cc
+++ b/ui/views/controls/button/toggle_button.cc
@@ -76,7 +76,7 @@ void ToggleButton::OnPaint(gfx::Canvas* canvas) {
track_paint.setAntiAlias(true);
const SkColor track_on_color =
SkColorSetA(GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_CallToActionColor),
+ ui::NativeTheme::kColorId_ProminentButtonColor),
0xFF / 2);
track_paint.setColor(
color_utils::AlphaBlend(track_on_color, kTrackOffColor, blend));
@@ -92,7 +92,7 @@ void ToggleButton::OnPaint(gfx::Canvas* canvas) {
thumb_paint.setStyle(SkPaint::kFill_Style);
thumb_paint.setAntiAlias(true);
const SkColor thumb_on_color = GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_CallToActionColor);
+ ui::NativeTheme::kColorId_ProminentButtonColor);
// TODO(estade): get this color from the theme?
const SkColor thumb_off_color = SK_ColorWHITE;
thumb_paint.setColor(
@@ -117,7 +117,7 @@ std::unique_ptr<InkDropRipple> ToggleButton::CreateInkDropRipple() const {
SkColor ToggleButton::GetInkDropBaseColor() const {
return is_on()
? GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_CallToActionColor)
+ ui::NativeTheme::kColorId_ProminentButtonColor)
: kTrackOffColor;
}
« no previous file with comments | « ui/views/controls/button/md_text_button.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698