OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 import 'dart:sky' show Color, Size; | 5 import 'dart:sky' show Color, Offset; |
6 | 6 |
7 import '../painting/box_painter.dart'; | 7 import '../painting/box_painter.dart'; |
8 | 8 |
9 const Map<int, List<BoxShadow>> shadows = const { | 9 const Map<int, List<BoxShadow>> shadows = const { |
10 1: const [ | 10 1: const [ |
11 const BoxShadow( | 11 const BoxShadow( |
12 color: const Color(0x1F000000), | 12 color: const Color(0x1F000000), |
13 offset: const Size(0.0, 1.0), | 13 offset: const Offset(0.0, 1.0), |
14 blur: 3.0), | 14 blur: 3.0), |
15 const BoxShadow( | 15 const BoxShadow( |
16 color: const Color(0x3D000000), | 16 color: const Color(0x3D000000), |
17 offset: const Size(0.0, 1.0), | 17 offset: const Offset(0.0, 1.0), |
18 blur: 2.0), | 18 blur: 2.0), |
19 ], | 19 ], |
20 2: const [ | 20 2: const [ |
21 const BoxShadow( | 21 const BoxShadow( |
22 color: const Color(0x29000000), | 22 color: const Color(0x29000000), |
23 offset: const Size(0.0, 3.0), | 23 offset: const Offset(0.0, 3.0), |
24 blur: 6.0), | 24 blur: 6.0), |
25 const BoxShadow( | 25 const BoxShadow( |
26 color: const Color(0x3B000000), | 26 color: const Color(0x3B000000), |
27 offset: const Size(0.0, 3.0), | 27 offset: const Offset(0.0, 3.0), |
28 blur: 6.0), | 28 blur: 6.0), |
29 ], | 29 ], |
30 3: const [ | 30 3: const [ |
31 const BoxShadow( | 31 const BoxShadow( |
32 color: const Color(0x30000000), | 32 color: const Color(0x30000000), |
33 offset: const Size(0.0, 10.0), | 33 offset: const Offset(0.0, 10.0), |
34 blur: 20.0), | 34 blur: 20.0), |
35 const BoxShadow( | 35 const BoxShadow( |
36 color: const Color(0x3B000000), | 36 color: const Color(0x3B000000), |
37 offset: const Size(0.0, 6.0), | 37 offset: const Offset(0.0, 6.0), |
38 blur: 6.0), | 38 blur: 6.0), |
39 ], | 39 ], |
40 4: const [ | 40 4: const [ |
41 const BoxShadow( | 41 const BoxShadow( |
42 color: const Color(0x40000000), | 42 color: const Color(0x40000000), |
43 offset: const Size(0.0, 14.0), | 43 offset: const Offset(0.0, 14.0), |
44 blur: 28.0), | 44 blur: 28.0), |
45 const BoxShadow( | 45 const BoxShadow( |
46 color: const Color(0x38000000), | 46 color: const Color(0x38000000), |
47 offset: const Size(0.0, 10.0), | 47 offset: const Offset(0.0, 10.0), |
48 blur: 10.0), | 48 blur: 10.0), |
49 ], | 49 ], |
50 5: const [ | 50 5: const [ |
51 const BoxShadow( | 51 const BoxShadow( |
52 color: const Color(0x4E000000), | 52 color: const Color(0x4E000000), |
53 offset: const Size(0.0, 19.0), | 53 offset: const Offset(0.0, 19.0), |
54 blur: 28.0), | 54 blur: 28.0), |
55 const BoxShadow( | 55 const BoxShadow( |
56 color: const Color(0x38000000), | 56 color: const Color(0x38000000), |
57 offset: const Size(0.0, 15.0), | 57 offset: const Offset(0.0, 15.0), |
58 blur: 12.0), | 58 blur: 12.0), |
59 ], | 59 ], |
60 }; | 60 }; |
OLD | NEW |