blob: 2b09f30c9cc8c4505262e276f7ad4a9c2e6ba280 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/message_center/message_center_constants.h"
namespace message_center {
// Exported values /////////////////////////////////////////////////////////////
// Square image sizes in pixels.
const int kNotificationButtonIconSize = 16;
const int kNotificationIconSize = 80;
const int kNotificationPreferredImageSize = kNotificationWidth;
const int kSettingsIconSize = 16;
// Within a notification ///////////////////////////////////////////////////////
// Pixel dimensions.
const int kControlButtonSize = 29;
const int kNotificationWidth = 360;
const int kIconToTextPadding = 16;
const int kTextTopPadding = 12;
// Text sizes.
const int kTitleFontSize = 14;
const int kMessageFontSize = 12;
// Colors.
const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255);
const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(230, 230, 230);
const SkColor kRegularTextColor = SkColorSetRGB(68, 68, 68);
// Limits.
const int kNotificationMaximumImageHeight = kNotificationWidth;
const size_t kNotificationMaximumItems = 8;
// Timing.
const int kAutocloseDefaultDelaySeconds = 8;
const int kAutocloseHighPriorityDelaySeconds = 25;
// Around notifications ////////////////////////////////////////////////////////
// Pixel dimensions.
const int kMarginBetweenItems = 10;
// Colors.
const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1);
const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7);
} // namespace message_center
|