1 // Copyright (c) 2017 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 #ifndef ASH_SYSTEM_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ 6 #define ASH_SYSTEM_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ 7 8 #include "third_party/skia/include/core/SkColor.h" 9 #include "ui/gfx/color_palette.h" 10 #include "ui/gfx/geometry/insets.h" 11 12 namespace ash { 13 14 namespace message_center_style { 15 16 constexpr SkColor kEmptyViewColor = SkColorSetARGB(0x8A, 0x0, 0x0, 0x0); 17 constexpr SkColor kScrollShadowColor = SkColorSetARGB(0x24, 0x0, 0x0, 0x0); 18 19 // TODO: Get the colors from AshColorProvider once notification supports 20 // dark/light mode. 21 constexpr SkColor kCountLabelColor = gfx::kGoogleGrey900; 22 constexpr SkColor kSeperatorColor = SkColorSetA(SK_ColorBLACK, 0x24); // 14% 23 constexpr SkColor kNotificationBackgroundColor = SK_ColorWHITE; 24 constexpr SkColor kUnifiedMenuButtonColorActive = gfx::kGoogleBlueDark600; 25 constexpr SkColor kInkRippleColor = SK_ColorBLACK; 26 constexpr float kInkRippleOpacity = 0.06f; 27 28 constexpr int kEmptyIconSize = 24; 29 constexpr gfx::Insets kEmptyIconPadding(0, 0, 4, 0); 30 31 constexpr int kScrollShadowOffsetY = 2; 32 constexpr int kScrollShadowBlur = 2; 33 34 // Layout parameters for swipe control of notifications in message center. 35 constexpr int kSwipeControlButtonImageSize = 20; 36 constexpr int kSwipeControlButtonSize = 36; 37 constexpr int kSwipeControlButtonVerticalMargin = 24; 38 constexpr int kSwipeControlButtonHorizontalMargin = 8; 39 constexpr SkColor kSwipeControlBackgroundColor = 40 SkColorSetRGB(0xee, 0xee, 0xee); 41 42 // The ratio to multiply with the swipe control width to get the width to 43 // display at full opacity when swiping. 44 constexpr float kSwipeControlFullOpacityRatio = 1.5f; 45 46 } // namespace message_center_style 47 48 } // namespace ash 49 50 #endif // ASH_SYSTEM_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ 51