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

Unified Diff: chrome/browser/chromeos/login/message_bubble.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/chromeos/login/message_bubble.cc
===================================================================
--- chrome/browser/chromeos/login/message_bubble.cc (revision 104959)
+++ chrome/browser/chromeos/login/message_bubble.cc (working copy)
@@ -66,6 +66,7 @@
text_ = new views::Label(WideToUTF16Hack(text));
text_->SetMultiLine(true);
text_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ text_->SetBackgroundColor(Bubble::kBackgroundColor);
text_->SizeToFit(kMaxLabelWidth);
layout->AddView(text_);
@@ -83,8 +84,9 @@
views::Link* help_link_ = new views::Link(WideToUTF16Hack(links[i]));
help_links_.push_back(help_link_);
help_link_->set_listener(this);
- help_link_->SetNormalColor(login::kLinkColor);
- help_link_->SetHighlightedColor(login::kLinkColor);
+ help_link_->SetBackgroundColor(Bubble::kBackgroundColor);
+ help_link_->SetEnabledColor(login::kLinkColor);
+ help_link_->SetPressedColor(login::kLinkColor);
layout->AddView(help_link_);
}
}
« no previous file with comments | « chrome/browser/chromeos/login/background_view.cc ('k') | chrome/browser/chromeos/login/network_selection_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698