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

Side by Side Diff: sky/sdk/lib/framework/components2/tool_bar.dart

Issue 1168203004: Add material shadows to toolbar and drawer (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/components2/fixed_height_scrollable.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 import '../fn2.dart'; 5 import '../fn2.dart';
6 import '../theme/view_configuration.dart'; 6 import '../theme/view_configuration.dart';
7 // import 'material.dart'; 7 import '../theme2/shadows.dart';
8 8
9 class ToolBar extends Component { 9 class ToolBar extends Component {
10 UINode left; 10 UINode left;
11 UINode center; 11 UINode center;
12 List<UINode> right; 12 List<UINode> right;
13 Color backgroundColor; 13 Color backgroundColor;
14 14
15 ToolBar({ 15 ToolBar({
16 String key, 16 String key,
17 this.left, 17 this.left,
(...skipping 15 matching lines...) Expand all
33 if (right != null) 33 if (right != null)
34 children.addAll(right); 34 children.addAll(right);
35 35
36 return new Container( 36 return new Container(
37 child: new FlexContainer( 37 child: new FlexContainer(
38 children: children, 38 children: children,
39 direction: FlexDirection.horizontal 39 direction: FlexDirection.horizontal
40 ), 40 ),
41 height: 56.0, 41 height: 56.0,
42 padding: new EdgeDims(kStatusBarHeight.toDouble(), 8.0, 0.0, 8.0), 42 padding: new EdgeDims(kStatusBarHeight.toDouble(), 8.0, 0.0, 8.0),
43 decoration: new BoxDecoration(backgroundColor: backgroundColor) 43 decoration: new BoxDecoration(
44 backgroundColor: backgroundColor,
45 boxShadow: Shadow[2]
46 )
44 ); 47 );
45 } 48 }
46 } 49 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/fixed_height_scrollable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698