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 8 namespace ash { 9 10 const int kTrayTextFontSizeIncrease = 2; 11 12 // Size of tray items on the primary axis. 13 const int kTrayItemSize = 32; 14 15 const float kTrayItemCornerRadius = kTrayItemSize / 2.f; 16 17 const int kTrayMenuWidth = 360; 18 19 const int kTrayPopupAutoCloseDelayInSeconds = 2; 20 const int kTrayPopupAutoCloseDelayInSecondsWithSpokenFeedback = 5; 21 const int kTrayPopupPaddingHorizontal = 18; 22 const int kTrayPopupButtonEndMargin = 10; 23 const int kTrayPopupLabelHorizontalPadding = 4; 24 const int kTrayPopupSliderHorizontalPadding = 16; 25 const int kTrayPopupItemMinHeight = 48; 26 const int kTrayPopupItemMinStartWidth = 48; 27 const int kTrayPopupItemMinEndWidth = 28 kMenuIconSize + 2 * kTrayPopupButtonEndMargin; 29 30 const int kTrayPopupLabelRightPadding = 8; 31 32 const int kTrayToggleButtonWidth = 68; 33 34 const int kMenuIconSize = 20; 35 const int kMenuButtonSize = 48; 36 const int kMenuSeparatorVerticalPadding = 4; 37 const int kMenuExtraMarginFromLeftEdge = 4; 38 const int kMenuEdgeEffectivePadding = 39 kMenuExtraMarginFromLeftEdge + (kMenuButtonSize - kMenuIconSize) / 2; 40 41 const int kTrayPopupInkDropInset = 4; 42 const int kTrayPopupInkDropCornerRadius = 2; 43 44 static_assert(kTrayMenuWidth == kUnifiedFeaturePodHorizontalSidePadding * 2 + 45 kUnifiedFeaturePodHorizontalMiddlePadding * 46 (kUnifiedFeaturePodItemsInRow - 1) + 47 kUnifiedFeaturePodSize.width() * 48 kUnifiedFeaturePodItemsInRow, 49 "Total feature pod width does not match kTrayMenuWidth"); 50 51 } // namespace ash 52