Chromium Code Reviews

Unified Diff: chrome/browser/chromeos/login/screen_lock_view.cc

Issue 5074001: Fix username label's color (regression from r66060) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/user_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/screen_lock_view.cc
diff --git a/chrome/browser/chromeos/login/screen_lock_view.cc b/chrome/browser/chromeos/login/screen_lock_view.cc
index 1213227349a7b8f7b60f1fbec1f853fbf695d29b..5264f54981ae282c4f8bacffca171469def0c61b 100644
--- a/chrome/browser/chromeos/login/screen_lock_view.cc
+++ b/chrome/browser/chromeos/login/screen_lock_view.cc
@@ -72,7 +72,7 @@ gfx::Size ScreenLockView::GetPreferredSize() {
}
void ScreenLockView::Layout() {
- int username_height = username_->GetPreferredSize().height();
+ int username_height = login::kSelectedLabelHeight; // see
Daniel Erat 2010/11/16 21:23:41 fix comment (just says "see")
oshima 2010/11/17 17:53:28 Done.
main_->SetBounds(0, 0, width(), height());
username_->SetBounds(
kBorderSize,
@@ -112,7 +112,7 @@ void ScreenLockView::Init() {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
const gfx::Font& font =
- rb.GetFont(ResourceBundle::LargeFont).DeriveFont(0, gfx::Font::BOLD);
+ rb.GetFont(ResourceBundle::MediumBoldFont);
Daniel Erat 2010/11/16 21:23:41 nit: this line can be unwrapped now
oshima 2010/11/17 17:53:28 Done.
// Layouts image, textfield and button components.
GridLayout* layout = new GridLayout(main_);
@@ -141,6 +141,7 @@ void ScreenLockView::Init() {
UsernameView* username = new UsernameView(text);
username_ = username;
+ username->SetColor(login::kTextColor);
username->SetFont(font);
AddChildView(username);
}
« no previous file with comments | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine