| OLD | NEW |
| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 #include "ui/gfx/color_palette.h" | 9 #include "ui/gfx/color_palette.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 const int kTrayTextFontSizeIncrease = 2; | 25 const int kTrayTextFontSizeIncrease = 2; |
| 26 | 26 |
| 27 // Top inset of system tray bubble for bottom anchor alignment. | 27 // Top inset of system tray bubble for bottom anchor alignment. |
| 28 const int kTrayBubbleAnchorTopInsetBottomAnchor = 3; | 28 const int kTrayBubbleAnchorTopInsetBottomAnchor = 3; |
| 29 | 29 |
| 30 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; | 30 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; |
| 31 | 31 |
| 32 // Size of tray items on the primary axis. | 32 // Size of tray items on the primary axis. |
| 33 const int kTrayItemSize = 32; | 33 const int kTrayItemSize = 32; |
| 34 | 34 |
| 35 const int kTrayImageItemPadding = 3; | |
| 36 | |
| 37 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; | 35 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; |
| 38 | 36 |
| 39 // Vertical padding between status tray items when the shelf is vertical. | 37 // Vertical padding between status tray items when the shelf is vertical. |
| 40 const int kTrayLabelItemVerticalPaddingVerticalAlignment = 4; | 38 const int kTrayLabelItemVerticalPaddingVerticalAlignment = 4; |
| 41 | 39 |
| 42 const int kTrayMenuBottomRowPadding = 3; | 40 const int kTrayMenuBottomRowPadding = 3; |
| 43 const int kTrayMenuBottomRowPaddingBetweenItems = -1; | 41 const int kTrayMenuBottomRowPaddingBetweenItems = -1; |
| 44 const int kTrayMenuMinimumWidth = 352; | 42 const int kTrayMenuMinimumWidth = 352; |
| 45 | 43 |
| 46 const int kTrayPopupAutoCloseDelayInSeconds = 2; | 44 const int kTrayPopupAutoCloseDelayInSeconds = 2; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 73 | 71 |
| 74 const int kTrayPopupMinWidth = 300; | 72 const int kTrayPopupMinWidth = 300; |
| 75 const int kTrayPopupMaxWidth = 500; | 73 const int kTrayPopupMaxWidth = 500; |
| 76 const int kNotificationIconWidth = 40; | 74 const int kNotificationIconWidth = 40; |
| 77 const int kNotificationButtonWidth = 32; | 75 const int kNotificationButtonWidth = 32; |
| 78 const int kTrayNotificationContentsWidth = | 76 const int kTrayNotificationContentsWidth = |
| 79 kTrayPopupMinWidth - (kNotificationIconWidth + kNotificationButtonWidth + | 77 kTrayPopupMinWidth - (kNotificationIconWidth + kNotificationButtonWidth + |
| 80 (kTrayPopupPaddingHorizontal / 2) * 3); | 78 (kTrayPopupPaddingHorizontal / 2) * 3); |
| 81 | 79 |
| 82 const int kTrayIconSize = 16; | 80 const int kTrayIconSize = 16; |
| 83 const int kTrayEdgePadding = 6; | |
| 84 const SkColor kTrayIconColor = SK_ColorWHITE; | 81 const SkColor kTrayIconColor = SK_ColorWHITE; |
| 85 const int kMenuIconSize = 20; | 82 const int kMenuIconSize = 20; |
| 86 const SkColor kMenuIconColor = gfx::kChromeIconGrey; | 83 const SkColor kMenuIconColor = gfx::kChromeIconGrey; |
| 87 const SkColor kMenuIconColorDisabled = SkColorSetA(gfx::kChromeIconGrey, 0x61); | 84 const SkColor kMenuIconColorDisabled = SkColorSetA(gfx::kChromeIconGrey, 0x61); |
| 88 const int kMenuButtonSize = 48; | 85 const int kMenuButtonSize = 48; |
| 89 const int kMenuSeparatorVerticalPadding = 4; | 86 const int kMenuSeparatorVerticalPadding = 4; |
| 90 const int kMenuExtraMarginFromLeftEdge = 4; | 87 const int kMenuExtraMarginFromLeftEdge = 4; |
| 91 const int kMenuEdgeEffectivePadding = | 88 const int kMenuEdgeEffectivePadding = |
| 92 kMenuExtraMarginFromLeftEdge + (kMenuButtonSize - kMenuIconSize) / 2; | 89 kMenuExtraMarginFromLeftEdge + (kMenuButtonSize - kMenuIconSize) / 2; |
| 93 | 90 |
| 94 const int kHitRegionPadding = 4; | 91 const int kHitRegionPadding = 4; |
| 95 const int kSeparatorWidth = 1; | 92 const int kSeparatorWidth = 1; |
| 96 | 93 |
| 97 const SkColor kMenuSeparatorColor = SkColorSetA(SK_ColorBLACK, 0x1F); | 94 const SkColor kMenuSeparatorColor = SkColorSetA(SK_ColorBLACK, 0x1F); |
| 98 | 95 |
| 99 const SkColor kTrayPopupInkDropBaseColor = SK_ColorBLACK; | 96 const SkColor kTrayPopupInkDropBaseColor = SK_ColorBLACK; |
| 100 const float kTrayPopupInkDropRippleOpacity = 0.06f; | 97 const float kTrayPopupInkDropRippleOpacity = 0.06f; |
| 101 const float kTrayPopupInkDropHighlightOpacity = 0.08f; | 98 const float kTrayPopupInkDropHighlightOpacity = 0.08f; |
| 102 const int kTrayPopupInkDropInset = 4; | 99 const int kTrayPopupInkDropInset = 4; |
| 103 const int kTrayPopupInkDropCornerRadius = 2; | 100 const int kTrayPopupInkDropCornerRadius = 2; |
| 104 | 101 |
| 105 const int kTrayPopupSystemInfoRowHeight = 40; | 102 const int kTrayPopupSystemInfoRowHeight = 40; |
| 106 | 103 |
| 107 } // namespace ash | 104 } // namespace ash |
| OLD | NEW |