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

Unified Diff: chrome/browser/chromeos/login/background_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/chromeos/login/background_view.cc
===================================================================
--- chrome/browser/chromeos/login/background_view.cc (revision 104959)
+++ chrome/browser/chromeos/login/background_view.cc (working copy)
@@ -342,7 +342,8 @@
delete os_version_label_;
os_version_label_ = new views::Label();
os_version_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
- os_version_label_->SetColor(kVersionColor);
+ os_version_label_->SetEnabledColor(kVersionColor);
+ os_version_label_->SetBackgroundColor(background()->get_color());
os_version_label_->SetFont(rb.GetFont(ResourceBundle::SmallFont));
if (idx < 0)
AddChildView(os_version_label_);
@@ -354,7 +355,8 @@
delete boot_times_label_;
boot_times_label_ = new views::Label();
boot_times_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
- boot_times_label_->SetColor(kVersionColor);
+ boot_times_label_->SetEnabledColor(kVersionColor);
+ boot_times_label_->SetBackgroundColor(background()->get_color());
boot_times_label_->SetFont(rb.GetFont(ResourceBundle::SmallFont));
if (idx < 0)
AddChildView(boot_times_label_);
« no previous file with comments | « chrome/browser/chromeos/input_method/candidate_window.cc ('k') | chrome/browser/chromeos/login/message_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698