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

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

Issue 10809008: Make spacing between uber tray items consistent with UI spec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move SetTrayImageItemBorder etc to tray_views. 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 | « no previous file | ash/system/ime/tray_ime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/date/date_view.cc
diff --git a/ash/system/date/date_view.cc b/ash/system/date/date_view.cc
index ebd98d14e5fb17c470fc01b8d3ac8653118f46c3..3ba47d67a2a7fb51097384e3c1286ce12bda12c6 100644
--- a/ash/system/date/date_view.cc
+++ b/ash/system/date/date_view.cc
@@ -222,14 +222,14 @@ void TimeView::UpdateClockLayout(TrayDate::ClockLayout clock_layout){
0, views::GridLayout::USE_PREF, 0, 0);
columns->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER,
0, views::GridLayout::USE_PREF, 0, 0);
- layout->AddPaddingRow(0, 4);
+ layout->AddPaddingRow(0, kTrayLabelItemVerticalPaddingVeriticalAlignment);
layout->StartRow(0, 0);
layout->AddView(label_hour_left_.get());
layout->AddView(label_hour_right_.get());
layout->StartRow(0, 0);
layout->AddView(label_minute_left_.get());
layout->AddView(label_minute_right_.get());
- layout->AddPaddingRow(0, 4);
+ layout->AddPaddingRow(0, kTrayLabelItemVerticalPaddingVeriticalAlignment);
}
Layout();
set_focusable(true);
@@ -237,7 +237,9 @@ void TimeView::UpdateClockLayout(TrayDate::ClockLayout clock_layout){
void TimeView::SetBorder(TrayDate::ClockLayout clock_layout) {
if (clock_layout == TrayDate::HORIZONTAL_CLOCK)
- set_border(views::Border::CreateEmptyBorder(0, 10, 0, 7));
+ set_border(views::Border::CreateEmptyBorder(
+ 0, kTrayLabelItemHorizontalPaddingBottomAlignment,
+ 0, kTrayLabelItemHorizontalPaddingBottomAlignment));
else
set_border(NULL);
}
« no previous file with comments | « no previous file | ash/system/ime/tray_ime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698