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

Unified Diff: ash/system/tray/tray_constants.cc

Issue 11377133: Customize user details in ash system bubble for public account mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Per UI feedback, set custom border color on public account logout button. Created 8 years, 1 month 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
Index: ash/system/tray/tray_constants.cc
diff --git a/ash/system/tray/tray_constants.cc b/ash/system/tray/tray_constants.cc
index b9e6863d57f8eb994e78b461d2da5226cecbac91..b2f0248c8bed51291109ffc381d89d68155eba19 100644
--- a/ash/system/tray/tray_constants.cc
+++ b/ash/system/tray/tray_constants.cc
@@ -35,6 +35,8 @@ const int kTrayBarButtonWidth = 39;
const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe);
const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5);
const SkColor kPublicAccountBackgroundColor = SkColorSetRGB(0xf8, 0xe5, 0xb6);
+const SkColor kPublicAccountUserCardTextColor = SkColorSetRGB(0x66, 0x66, 0x66);
+const SkColor kPublicAccountUserCardNameColor = SK_ColorBLACK;
const SkColor kHeaderBackgroundColorLight = SkColorSetRGB(0xf1, 0xf1, 0xf1);
const SkColor kHeaderBackgroundColorDark = SkColorSetRGB(0xe7, 0xe7, 0xe7);
@@ -46,9 +48,10 @@ const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd);
const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0);
const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0);
-const int kTrayPopupWidth = 300;
+const int kTrayPopupMinWidth = 300;
+const int kTrayPopupMaxWidth = 500;
const int kNotificationIconWidth = 40;
-const int kTrayNotificationContentsWidth =
- kTrayPopupWidth - kNotificationIconWidth*2 - kTrayPopupPaddingHorizontal*2;
+const int kTrayNotificationContentsWidth = kTrayPopupMinWidth -
msw 2012/11/29 01:14:10 nit: does newly variable bubble width break this c
bartfab (slow) 2012/11/29 16:28:59 No, the new variable bubble width does not break t
+ (kNotificationIconWidth + kTrayPopupPaddingHorizontal) * 2;
msw 2012/11/29 01:14:10 nit: you didn't change this, but why does this cal
bartfab (slow) 2012/11/29 16:28:59 From my reading of TrayNotificationView::InitView(
msw 2012/11/29 18:37:46 You can add a TODO and file an issue for the relev
bartfab (slow) 2012/11/29 19:15:01 Done.
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698