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

Side by Side Diff: sky/sdk/lib/widgets/tool_bar.dart

Issue 1218153005: Refactoring to support dark theme better (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix import issues Created 5 years, 5 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/widgets/tabs.dart ('k') | sky/tests/examples/tabs-expected.txt » ('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 'package:sky/widgets/theme.dart'; 5 import 'package:sky/widgets/theme.dart';
6 6
7 import '../rendering/flex.dart'; 7 import '../rendering/flex.dart';
8 import '../theme/shadows.dart'; 8 import '../theme/shadows.dart';
9 import '../theme/view_configuration.dart'; 9 import '../theme/view_configuration.dart';
10 import 'basic.dart'; 10 import 'basic.dart';
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 if (right != null) 47 if (right != null)
48 children.addAll(right); 48 children.addAll(right);
49 49
50 return new Container( 50 return new Container(
51 child: new Flex( 51 child: new Flex(
52 [new Container(child: new Flex(children), height: kToolBarHeight)], 52 [new Container(child: new Flex(children), height: kToolBarHeight)],
53 alignItems: FlexAlignItems.flexEnd 53 alignItems: FlexAlignItems.flexEnd
54 ), 54 ),
55 padding: new EdgeDims.symmetric(horizontal: 8.0), 55 padding: new EdgeDims.symmetric(horizontal: 8.0),
56 decoration: new BoxDecoration( 56 decoration: new BoxDecoration(
57 backgroundColor: backgroundColor == null ? Theme.of(this).primary[500] : backgroundColor, 57 backgroundColor: backgroundColor == null ? Theme.of(this).primaryColor : backgroundColor,
58 boxShadow: shadows[2] 58 boxShadow: shadows[2]
59 ) 59 )
60 ); 60 );
61 } 61 }
62 62
63 } 63 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/tabs.dart ('k') | sky/tests/examples/tabs-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698