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

Unified Diff: ash/system/date/tray_date.cc

Issue 10668009: UI refinement for left/right ash tray and bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 5 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 | « ash/system/date/date_view.cc ('k') | ash/system/status_area_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/date/tray_date.cc
diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc
index 766736f61840b1c2cc0947c43a7d2c540b171fe8..c6ead5e731c2a145ad85bfdf6b5926625042fb76 100644
--- a/ash/system/date/tray_date.cc
+++ b/ash/system/date/tray_date.cc
@@ -130,16 +130,11 @@ TrayDate::~TrayDate() {
views::View* TrayDate::CreateTrayView(user::LoginStatus status) {
CHECK(time_tray_ == NULL);
- time_tray_ = new tray::TimeView();
ClockLayout clock_layout =
ash::Shell::GetInstance()->system_tray()->shelf_alignment() ==
SHELF_ALIGNMENT_BOTTOM ?
HORIZONTAL_CLOCK : VERTICAL_CLOCK;
- time_tray_->UpdateClockLayout(clock_layout);
- SetupLabelForTimeTray(time_tray_->label());
- SetupLabelForTimeTray(time_tray_->label_hour());
- SetupLabelForTimeTray(time_tray_->label_minute());
-
+ time_tray_ = new tray::TimeView(clock_layout);
views::View* view = new TrayItemView;
view->AddChildView(time_tray_);
return view;
@@ -184,11 +179,5 @@ void TrayDate::Refresh() {
time_tray_->UpdateText();
}
-void TrayDate::SetupLabelForTimeTray(views::Label* label) {
- SetupLabelForTray(label);
- gfx::Font font = label->font();
- label->SetFont(font.DeriveFont(0, font.GetStyle() & ~gfx::Font::BOLD));
-}
-
} // namespace internal
} // namespace ash
« no previous file with comments | « ash/system/date/date_view.cc ('k') | ash/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698