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

Unified Diff: athena/system/time_view.cc

Issue 483033003: [Athena] Add status icons and system time to the centered home card (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | « athena/system/time_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/system/time_view.cc
diff --git a/athena/system/time_view.cc b/athena/system/time_view.cc
index e32cb26ed91841200344e69ae0f9d23661484f5a..9570546d3e3b09feac5d1ecc9539b9b18b2b9532 100644
--- a/athena/system/time_view.cc
+++ b/athena/system/time_view.cc
@@ -17,11 +17,14 @@ const int kTimerSlopSeconds = 1;
} // namespace
-TimeView::TimeView() {
+TimeView::TimeView(SystemUI::ColorScheme color_scheme) {
SetHorizontalAlignment(gfx::ALIGN_LEFT);
- SetEnabledColor(SK_ColorWHITE);
+ SetEnabledColor((color_scheme == SystemUI::COLOR_SCHEME_LIGHT)
+ ? SK_ColorWHITE
+ : SK_ColorDKGRAY);
SetAutoColorReadabilityEnabled(false);
SetFontList(gfx::FontList().DeriveWithStyle(gfx::Font::BOLD));
+ SetSubpixelRenderingEnabled(false);
const int kHorizontalSpacing = 10;
const int kVerticalSpacing = 3;
« no previous file with comments | « athena/system/time_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698