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 3// found in the LICENSE file. 4 5#include "ash/system/tray/tray_constants.h" 6 7#include "ash/ash_switches.h" 8#include "third_party/skia/include/core/SkColor.h" 9 10namespace ash { 11 12const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; 13const int kPaddingFromBottomOfScreenBottomAlignment = 7; 14const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; 15const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; 16const int kPaddingFromBottomOfScreenVerticalAlignment = 10; 17 18// Padding used to position the system menu relative to the status area. 19const int kBubblePaddingHorizontalBottom = 6; 20const int kBubblePaddingHorizontalSide = 10; 21const int kBubblePaddingVerticalBottom = 3; 22const int kBubblePaddingVerticalSide = 15; 23 24const int kPaddingFromEdgeOfShelf = 3; 25 26// Top inset of system tray bubble for bottom anchor alignment. 27const int kTrayBubbleAnchorTopInsetBottomAnchor = 3; 28 29const int kTrayImageItemHorizontalPaddingBottomAlignment = 1; 30const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; 31const int kTrayImageItemVerticalPaddingVerticalAlignment = 1; 32 33// Size of tray items on the primary axis. 34const int kTrayItemSize = 32; 35 36const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; 37 38// Vertical padding between status tray items when the shelf is vertical. 39const int kTrayLabelItemVerticalPaddingVerticalAlignment = 4; 40 41const int kTrayMenuBottomRowPadding = 5; 42const int kTrayMenuBottomRowPaddingBetweenItems = -1; 43 44const int kTrayPopupAutoCloseDelayInSeconds = 2; 45const int kTrayPopupAutoCloseDelayForTextInSeconds = 5; 46const int kTrayPopupPaddingHorizontal = 18; 47const int kTrayPopupPaddingBetweenItems = 10; 48const int kTrayPopupTextSpacingVertical = 4; 49const int kTrayPopupUserCardVerticalPadding = 10; 50 51const int kTrayPopupDetailsIconWidth = 25; 52const int kTrayPopupDetailsLabelExtraLeftMargin = 8; 53const int kTrayPopupScrollSeparatorHeight = 15; 54const int kTrayRoundedBorderRadius = 2; 55const int kTrayBarButtonWidth = 39; 56 57const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe); 58const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf3, 0xf3, 0xf3); 59const SkColor kPublicAccountBackgroundColor = SkColorSetRGB(0xf8, 0xe5, 0xb6); 60const SkColor kPublicAccountUserCardTextColor = SkColorSetRGB(0x66, 0x66, 0x66); 61const SkColor kPublicAccountUserCardNameColor = SK_ColorBLACK; 62 63const SkColor kHeaderBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); 64 65const SkColor kBorderDarkColor = SkColorSetRGB(0xaa, 0xaa, 0xaa); 66const SkColor kBorderLightColor = SkColorSetRGB(0xeb, 0xeb, 0xeb); 67const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd); 68 69const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0); 70const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); 71 72const int kTrayPopupMinWidth = 300; 73const int kTrayPopupMaxWidth = 500; 74const int kNotificationIconWidth = 40; 75const int kNotificationButtonWidth = 32; 76const int kTrayNotificationContentsWidth = kTrayPopupMinWidth - 77 (kNotificationIconWidth + kNotificationButtonWidth + 78 (kTrayPopupPaddingHorizontal / 2) * 3); 79 80const int kTrayAvatarCornerRadius = 2; 81const int kTrayAvatarSize = 32; 82 83const int kTraySpacing = 4; 84const int kShelfItemHeight = 38; 85 86} // namespace ash 87