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

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

Issue 1169873003: Give the popup menu a 2px border radius (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 | « no previous file | sky/sdk/lib/framework/rendering/box.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 '../animation/animated_value.dart'; 5 import '../animation/animated_value.dart';
6 import '../fn2.dart'; 6 import '../fn2.dart';
7 import '../theme2/colors.dart'; 7 import '../theme2/colors.dart';
8 import '../theme2/shadows.dart'; 8 import '../theme2/shadows.dart';
9 import 'animated_component.dart'; 9 import 'animated_component.dart';
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // }); 92 // });
93 // } 93 // }
94 94
95 UINode build() { 95 UINode build() {
96 int i = 0; 96 int i = 0;
97 List<UINode> children = new List.from(items.map((List<UINode> item) { 97 List<UINode> children = new List.from(items.map((List<UINode> item) {
98 double opacity = _opacityFor(i); 98 double opacity = _opacityFor(i);
99 return new PopupMenuItem(key: i++, children: item, opacity: opacity); 99 return new PopupMenuItem(key: i++, children: item, opacity: opacity);
100 })); 100 }));
101 101
102 // border-radius: 2px
103 // inlineStyle: _inlineStyle(), 102 // inlineStyle: _inlineStyle(),
104 return new ShrinkWrapWidth( 103 return new ShrinkWrapWidth(
105 child: new Container( 104 child: new Container(
106 padding: const EdgeDims.all(8.0), 105 padding: const EdgeDims.all(8.0),
107 decoration: new BoxDecoration( 106 decoration: new BoxDecoration(
108 backgroundColor: Grey[50], 107 backgroundColor: Grey[50],
108 borderRadius: 2.0,
109 boxShadow: Shadow[level]), 109 boxShadow: Shadow[level]),
110 child: new BlockContainer(children: children) 110 child: new BlockContainer(children: children)
111 ) 111 )
112 ); 112 );
113 } 113 }
114 } 114 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698