Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: sky/sdk/lib/theme/shadows.dart

Issue 1214833004: Split Size into Size and Offset. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/rendering/stack.dart ('k') | sky/sdk/lib/widgets/basic.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 };
OLDNEW
« no previous file with comments | « sky/sdk/lib/rendering/stack.dart ('k') | sky/sdk/lib/widgets/basic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698