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

Unified Diff: sky/sdk/lib/framework/components2/icon.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/sdk/lib/framework/components2/icon.dart
diff --git a/sky/sdk/lib/framework/components2/icon.dart b/sky/sdk/lib/framework/components2/icon.dart
index 08913b05d4a83e9fb9cc397f029fadd7d195660c..c0a3d586204d80da072818591a575a02876c4235 100644
--- a/sky/sdk/lib/framework/components2/icon.dart
+++ b/sky/sdk/lib/framework/components2/icon.dart
@@ -30,7 +30,7 @@ class Icon extends Component {
// TODO(jackson): Use a real image.
return new Container(
desiredSize: new sky.Size(size.toDouble(), size.toDouble()),
- decoration: new BoxDecoration(backgroundColor: 0xFFFF0000)
+ decoration: new BoxDecoration(backgroundColor: sky.Color.red)
);
// return new Image(width: size, height: size,
// src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png');

Powered by Google App Engine
This is Rietveld 408576698