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

Unified Diff: chrome/browser/ui/panels/panel_browser_frame_view.cc

Issue 8221027: Make views::Label and views::Link auto-color themselves to be readable over their background colo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/panels/panel_browser_frame_view.cc (revision 104959)
+++ chrome/browser/ui/panels/panel_browser_frame_view.cc (working copy)
@@ -280,6 +280,7 @@
title_label_ = new views::Label(string16());
title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ title_label_->SetAutoColorReadabilityEnabled(false);
AddChildView(title_label_);
mouse_watcher_.reset(new MouseWatcher(this));
@@ -587,7 +588,7 @@
paint_state_ = paint_state;
SkColor title_color = GetTitleColor(paint_state_);
- title_label_->SetColor(title_color);
+ title_label_->SetEnabledColor(title_color);
title_label_->SetFont(*GetTitleFont());
close_button_->SetBackground(title_color,
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698