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

Unified Diff: chrome/browser/ui/views/status_bubble_views.cc

Issue 2018023002: Modify status bubble text color. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 60% Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/status_bubble_views.cc
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index 8b885a80ed73475b7b672c4a1465186d250bb98d..e6386be55808b99b4bbfbc4431ddc4d8db24af4a 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -440,12 +440,13 @@ void StatusBubbleViews::StatusView::OnPaint(gfx::Canvas* canvas) {
// Make sure the text is aligned to the right on RTL UIs.
text_bounds.set_x(GetMirroredXForRect(text_bounds));
- // Text color is the foreground tab text color at 50% alpha.
- SkColor text_color =
- theme_provider_->GetColor(ThemeProperties::COLOR_TAB_TEXT);
- canvas->DrawStringRect(text_, font_list,
- SkColorSetA(text_color, SkColorGetA(text_color) / 2),
- text_bounds);
+ // Text color is the foreground tab text color at 60% alpha.
+ SkColor text_color = color_utils::AlphaBlend(
+ theme_provider_->GetColor(ThemeProperties::COLOR_TAB_TEXT), toolbar_color,
+ 0x99);
+ canvas->DrawStringRect(
+ text_, font_list,
+ color_utils::GetReadableColor(text_color, toolbar_color), text_bounds);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698