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

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

Issue 2361063002: MdTextButton: get rid of distinct "default" styling and make all (Closed)
Patch Set: 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 | « no previous file | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/md_text_button.cc
diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc
index 327c347b55c83102a79e02bfaf0d71be9f2c9f6d..4f11e8d82a58c7b7439e69c844efef9f013530b3 100644
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
@@ -215,6 +215,7 @@ void MdTextButton::AdjustFontSize(int size_delta) {
}
void MdTextButton::UpdateStyleToIndicateDefaultStatus() {
+ is_cta_ = is_cta_ || is_default();
UpdateColors();
}
@@ -310,8 +311,6 @@ void MdTextButton::UpdateColors() {
if (state() == STATE_DISABLED)
bg_color = color_utils::BlendTowardOppositeLuma(
bg_color, gfx::kDisabledControlAlpha);
- } else if (is_default()) {
- bg_color = color_utils::BlendTowardOppositeLuma(text_color, 0xD8);
}
if (state() == STATE_PRESSED) {
« no previous file with comments | « no previous file | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698