tray_constants.cc revision 5821806d5e7f356e8fa4b058a389a808ea183019
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 "third_party/skia/include/core/SkColor.h" 8 9namespace ash { 10 11const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; 12const int kPaddingFromBottomOfScreenBottomAlignment = 7; 13const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; 14const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; 15const int kPaddingFromBottomOfScreenVerticalAlignment = 10; 16 17const int kTrayImageItemHorizontalPaddingBottomAlignment = 1; 18const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; 19const int kTrayImageItemVerticalPaddingVerticalAlignment = 1; 20 21const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; 22const int kTrayLabelItemVerticalPaddingVeriticalAlignment = 4; 23 24const int kTrayPopupAutoCloseDelayInSeconds = 2; 25const int kTrayPopupAutoCloseDelayForTextInSeconds = 5; 26const int kTrayPopupPaddingHorizontal = 18; 27const int kTrayPopupPaddingBetweenItems = 10; 28const int kTrayPopupTextSpacingVertical = 4; 29 30const int kTrayPopupItemHeight = 48; 31const int kTrayPopupDetailsIconWidth = 25; 32const int kTrayRoundedBorderRadius = 2; 33const int kTrayBarButtonWidth = 39; 34 35const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe); 36const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); 37 38const SkColor kHeaderBackgroundColorLight = SkColorSetRGB(0xf1, 0xf1, 0xf1); 39const SkColor kHeaderBackgroundColorDark = SkColorSetRGB(0xe7, 0xe7, 0xe7); 40 41const SkColor kBorderDarkColor = SkColorSetRGB(0xaa, 0xaa, 0xaa); 42const SkColor kBorderLightColor = SkColorSetRGB(0xeb, 0xeb, 0xeb); 43const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd); 44 45const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0); 46const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); 47 48const int kTrayPopupWidth = 300; 49const int kNotificationIconWidth = 40; 50const int kTrayNotificationContentsWidth = 51 kTrayPopupWidth - kNotificationIconWidth*2 - kTrayPopupPaddingHorizontal*2; 52 53} // namespace ash 54