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

Side by Side 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: Massively overhauled and redone implementation. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/system/tray/tray_constants.h" 5 #include "ash/system/tray/tray_constants.h"
6 6
7 #include "third_party/skia/include/core/SkColor.h" 7 #include "third_party/skia/include/core/SkColor.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
11 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; 11 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7;
12 const int kPaddingFromBottomOfScreenBottomAlignment = 7; 12 const int kPaddingFromBottomOfScreenBottomAlignment = 7;
13 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; 13 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8;
14 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; 14 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9;
15 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; 15 const int kPaddingFromBottomOfScreenVerticalAlignment = 10;
16 16
17 const int kTrayImageItemHorizontalPaddingBottomAlignment = 1; 17 const int kTrayImageItemHorizontalPaddingBottomAlignment = 1;
18 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; 18 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1;
19 const int kTrayImageItemVerticalPaddingVerticalAlignment = 1; 19 const int kTrayImageItemVerticalPaddingVerticalAlignment = 1;
20 20
21 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; 21 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7;
22 const int kTrayLabelItemVerticalPaddingVeriticalAlignment = 4; 22 const int kTrayLabelItemVerticalPaddingVeriticalAlignment = 4;
23 23
24 const int kTrayPopupAutoCloseDelayInSeconds = 2; 24 const int kTrayPopupAutoCloseDelayInSeconds = 2;
25 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5; 25 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5;
26 const int kTrayPopupPaddingHorizontal = 18; 26 const int kTrayPopupPaddingHorizontal = 18;
27 const int kTrayPopupPaddingBetweenItems = 10; 27 const int kTrayPopupPaddingBetweenItems = 10;
28 const int kTrayPopupTextSpacingVertical = 4; 28 const int kTrayPopupTextSpacingVertical = 4;
29 const int kTrayPopupPublicAccountLogoutButtonExtraPaddingVertical = 2;
29 30
30 const int kTrayPopupItemHeight = 48; 31 const int kTrayPopupItemHeight = 48;
31 const int kTrayPopupDetailsIconWidth = 25; 32 const int kTrayPopupDetailsIconWidth = 25;
32 const int kTrayRoundedBorderRadius = 2; 33 const int kTrayRoundedBorderRadius = 2;
33 const int kTrayBarButtonWidth = 39; 34 const int kTrayBarButtonWidth = 39;
34 35
35 const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe); 36 const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe);
36 const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); 37 const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5);
37 const SkColor kPublicAccountBackgroundColor = SkColorSetRGB(0xf8, 0xe5, 0xb6); 38 const SkColor kPublicAccountBackgroundColor = SkColorSetRGB(0xf8, 0xe5, 0xb6);
39 const SkColor kPublicAccountUserCardTextColor = SkColorSetRGB(0x66, 0x66, 0x66);
40 const SkColor kPublicAccountUserCardNameColor = SK_ColorBLACK;
38 41
39 const SkColor kHeaderBackgroundColorLight = SkColorSetRGB(0xf1, 0xf1, 0xf1); 42 const SkColor kHeaderBackgroundColorLight = SkColorSetRGB(0xf1, 0xf1, 0xf1);
40 const SkColor kHeaderBackgroundColorDark = SkColorSetRGB(0xe7, 0xe7, 0xe7); 43 const SkColor kHeaderBackgroundColorDark = SkColorSetRGB(0xe7, 0xe7, 0xe7);
41 44
42 const SkColor kBorderDarkColor = SkColorSetRGB(0xaa, 0xaa, 0xaa); 45 const SkColor kBorderDarkColor = SkColorSetRGB(0xaa, 0xaa, 0xaa);
43 const SkColor kBorderLightColor = SkColorSetRGB(0xeb, 0xeb, 0xeb); 46 const SkColor kBorderLightColor = SkColorSetRGB(0xeb, 0xeb, 0xeb);
44 const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd); 47 const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd);
48 const SkColor kPublicAccountLogoutButtonStrokeColor =
49 SkColorSetARGB(0x0a, 0, 0, 0);
45 50
46 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0); 51 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0);
47 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); 52 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0);
48 53
49 const int kTrayPopupWidth = 300; 54 const int kTrayPopupWidth = 300;
50 const int kNotificationIconWidth = 40; 55 const int kNotificationIconWidth = 40;
51 const int kTrayNotificationContentsWidth = 56 const int kTrayNotificationContentsWidth =
52 kTrayPopupWidth - kNotificationIconWidth*2 - kTrayPopupPaddingHorizontal*2; 57 kTrayPopupWidth - kNotificationIconWidth*2 - kTrayPopupPaddingHorizontal*2;
53 58
54 } // namespace ash 59 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698