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

Unified Diff: chrome/browser/chromeos/login/user_controller.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/chromeos/login/update_view.cc ('k') | chrome/browser/chromeos/login/user_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_controller.cc
===================================================================
--- chrome/browser/chromeos/login/user_controller.cc (revision 104959)
+++ chrome/browser/chromeos/login/user_controller.cc (working copy)
@@ -363,7 +363,7 @@
views::View* control_view;
if (is_new_user_) {
NewUserView* new_user_view =
- new NewUserView(this, true, need_browse_without_signin);
+ new NewUserView(this, need_browse_without_signin);
new_user_view->Init();
control_view = new_user_view;
user_input_ = new_user_view;
@@ -487,7 +487,8 @@
const gfx::Font& font = (type == WM_IPC_WINDOW_LOGIN_LABEL) ?
GetLabelFont() : GetUnselectedLabelFont();
label->SetFont(font);
- label->SetColor(login::kTextColor);
+ label->SetAutoColorReadabilityEnabled(false);
+ label->SetEnabledColor(login::kTextColor);
if (type == WM_IPC_WINDOW_LOGIN_LABEL)
label_view_ = label;
« no previous file with comments | « chrome/browser/chromeos/login/update_view.cc ('k') | chrome/browser/chromeos/login/user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698