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

Side by Side Diff: sky/sdk/lib/framework/theme2/shadows.dart

Issue 1172723002: Add a proper material shadow the popup menu (Closed) Base URL: git@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/framework/rendering/box.dart ('k') | no next file » | 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 const Map<int, String> Shadow = const { 5 import '../rendering/box.dart';
6 1: '0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)', 6 import 'dart:sky' show Color, Size;
7 2: '0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)', 7
8 3: '0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)', 8 const Map<int, List<BoxShadow>> Shadow = const {
9 4: '0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)', 9 1: const [
10 5: '0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)', 10 const BoxShadow(
11 color: const Color(0x1F000000),
12 offset: const Size(0.0, 1.0),
13 blur: 3.0),
14 const BoxShadow(
15 color: const Color(0x3D000000),
16 offset: const Size(0.0, 1.0),
17 blur: 2.0),
18 ],
19 2: const [
20 const BoxShadow(
21 color: const Color(0x29000000),
22 offset: const Size(0.0, 3.0),
23 blur: 6.0),
24 const BoxShadow(
25 color: const Color(0x3B000000),
26 offset: const Size(0.0, 3.0),
27 blur: 6.0),
28 ],
29 3: const [
30 const BoxShadow(
31 color: const Color(0x30000000),
32 offset: const Size(0.0, 10.0),
33 blur: 20.0),
34 const BoxShadow(
35 color: const Color(0x3B000000),
36 offset: const Size(0.0, 6.0),
37 blur: 6.0),
38 ],
39 4: const [
40 const BoxShadow(
41 color: const Color(0x40000000),
42 offset: const Size(0.0, 14.0),
43 blur: 28.0),
44 const BoxShadow(
45 color: const Color(0x38000000),
46 offset: const Size(0.0, 10.0),
47 blur: 10.0),
48 ],
49 5: const [
50 const BoxShadow(
51 color: const Color(0x4E000000),
52 offset: const Size(0.0, 19.0),
53 blur: 28.0),
54 const BoxShadow(
55 color: const Color(0x38000000),
56 offset: const Size(0.0, 15.0),
57 blur: 12.0),
58 ],
11 }; 59 };
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/rendering/box.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698