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

Unified Diff: sky/sdk/lib/framework/components2/icon.dart

Issue 1164023005: Make Icon work using space-aged base-url technology. (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
« no previous file with comments | « sky/engine/core/loader/CanvasImageLoader.cpp ('k') | sky/sdk/lib/framework/components2/icon_button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85b957f2b95a51dd9be30b4b08537a521394be60..2d31def83599133d7d3703c400acf1afe4463143 100644
--- a/sky/sdk/lib/framework/components2/icon.dart
+++ b/sky/sdk/lib/framework/components2/icon.dart
@@ -10,7 +10,7 @@ import '../rendering/box.dart';
const String kAssetBase = '/packages/sky/assets/material-design-icons';
class Icon extends Component {
- double size;
+ int size;
String type;
Icon({
@@ -28,7 +28,7 @@ class Icon extends Component {
subtype = parts[1];
}
return new Image(
- size: new sky.Size(size, size),
+ size: new sky.Size(size.toDouble(), size.toDouble()),
src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png'
);
}
« no previous file with comments | « sky/engine/core/loader/CanvasImageLoader.cpp ('k') | sky/sdk/lib/framework/components2/icon_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698