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

Unified Diff: sky/examples/fn2/container.dart

Issue 1162023004: Update BoxDecoration and RenderParagraph to use sky.Color instead of int. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: . Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: sky/examples/fn2/container.dart
diff --git a/sky/examples/fn2/container.dart b/sky/examples/fn2/container.dart
index a236a42e271e0b63dda9d76c81e29d8107b2ae99..b3c3c9d232b16c1d1bed7bdc8899a94f7f992fc7 100644
--- a/sky/examples/fn2/container.dart
+++ b/sky/examples/fn2/container.dart
@@ -14,11 +14,11 @@ class ContainerApp extends App {
padding: new EdgeDims.all(10.0),
margin: new EdgeDims.all(10.0),
desiredSize: new sky.Size(double.INFINITY, 100.0),
- decoration: new BoxDecoration(backgroundColor: 0xFF00FF00),
+ decoration: new BoxDecoration(backgroundColor: sky.Color.green),
child: new BlockContainer(
children: [
new Container(
- decoration: new BoxDecoration(backgroundColor: 0xFFFFFF00),
+ decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFFFFFF00)),
abarth-chromium 2015/06/03 19:31:18 Should we do all the CSS colors?
desiredSize: new sky.Size(double.INFINITY, 20.0)
)
])),

Powered by Google App Engine
This is Rietveld 408576698