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

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_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
Index: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
===================================================================
--- chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (revision 104959)
+++ chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (working copy)
@@ -25,12 +25,14 @@
: background_painter_(background_images),
is_extension_icon_(false) {
image_ = new views::ImageView();
- AddChildView(image_);
image_->SetImage(
ResourceBundle::GetSharedInstance().GetBitmapNamed(contained_image));
+ AddChildView(image_);
+
label_ = new views::Label();
+ label_->SetAutoColorReadabilityEnabled(false);
+ label_->SetEnabledColor(color);
AddChildView(label_);
- label_->SetColor(color);
}
IconLabelBubbleView::~IconLabelBubbleView() {
« no previous file with comments | « chrome/browser/ui/views/infobars/link_infobar.cc ('k') | chrome/browser/ui/views/location_bar/keyword_hint_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698