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

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

Issue 1186633003: Use drawable_xxhdpi instead of 2x_web (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/tools/deploy_domokit_site.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/widgets/icon.dart
diff --git a/sky/sdk/lib/framework/widgets/icon.dart b/sky/sdk/lib/framework/widgets/icon.dart
index abd7b6cefd7a4ae5b51864781b397d8006c6403c..35f01938b4f5ade86b6d2bc37776ea03c49901ed 100644
--- a/sky/sdk/lib/framework/widgets/icon.dart
+++ b/sky/sdk/lib/framework/widgets/icon.dart
@@ -26,9 +26,12 @@ class Icon extends Component {
category = parts[0];
subtype = parts[1];
}
+ // TODO(eseidel): This clearly isn't correct. Not sure what would be.
+ // Should we use the ios images on ios?
+ String density = 'drawable-xxhdpi';
return new Image(
size: new Size(size.toDouble(), size.toDouble()),
- src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png'
+ src: '${kAssetBase}/${category}/${density}/ic_${subtype}_${size}dp.png'
);
}
« no previous file with comments | « mojo/tools/deploy_domokit_site.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698