Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6f84de7

Browse files
committed
Merge pull request #250 from abarth/material_package
Move Material Design Icons to their own package
2 parents fb814ca + 47a582b commit 6f84de7

File tree

12 files changed

+432
-50
lines changed

12 files changed

+432
-50
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ hooks = [
269269
'pattern': '.',
270270
'action': [
271271
'python',
272-
'src/sky/sdk/lib/download_material_design_icons',
272+
'src/sky/tools/download_material_design_icons',
273273
],
274274
},
275275
# Pull binutils for linux, enabled debug fission for faster linking /

sky/build/skyx.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ template("skyx") {
5353
}
5454

5555
action("gen_${bundle_prefix}_bundle") {
56-
asset_base = "$package_root/sky/assets/material-design-icons"
56+
asset_base = "//sky/packages/material_design_icons/icons"
5757

5858
sources = [
5959
"//sky/tools/skyx/bin/skyx.dart",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
icons

sky/packages/material_design_icons/LICENSE

Lines changed: 393 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Material Design Icons
2+
=====================
3+
4+
A set of icons designed under the
5+
[material design guidelines](http://www.google.com/design/spec).
6+
7+
License
8+
-------
9+
10+
We have made these icons available for you to incorporate them into your
11+
products under the Creative Common Attribution 4.0 International License
12+
(CC-BY 4.0). Feel free to remix and re-share these icons and documentation in
13+
your products. We'd love attribution in your app's about screen, but it's not
14+
required. The only thing we ask is that you not re-sell the icons themselves.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: material_design_icons
2+
version: 0.0.1
3+
author: Chromium Authors <[email protected]>
4+
description: Material Design Icons
5+
homepage: https://github.com/google/material-design-icons

sky/sdk/BUILD.gn

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ dart_pkg("sky") {
1515
"lib/animation/forces.dart",
1616
"lib/animation/scroll_behavior.dart",
1717
"lib/animation/timeline.dart",
18-
"lib/assets/.gitignore",
19-
"lib/assets/material-design-icons.sha1",
2018
"lib/base/debug.dart",
2119
"lib/base/hit_test.dart",
2220
"lib/base/lerp.dart",
2321
"lib/base/node.dart",
2422
"lib/base/scheduler.dart",
25-
"lib/download_material_design_icons",
2623
"lib/editing/editable_string.dart",
2724
"lib/editing/editable_text.dart",
2825
"lib/editing/input.dart",
@@ -115,34 +112,8 @@ dart_pkg("sky") {
115112
]
116113
}
117114

118-
action("material_design_icons") {
119-
source_file = "lib/assets/material-design-icons"
120-
target_file = "$root_gen_dir/dart-pkg/sky/lib/assets/material-design-icons"
121-
stamp = "$target_gen_dir/material_design_icons_linked"
122-
123-
sources = [
124-
"lib/assets/material-design-icons.sha1",
125-
]
126-
outputs = [
127-
stamp,
128-
]
129-
130-
script = "//sky/build/symlink.py"
131-
args = [
132-
rebase_path(source_file, root_build_dir),
133-
rebase_path(target_file, root_build_dir),
134-
"--touch",
135-
rebase_path(stamp, root_build_dir),
136-
]
137-
138-
deps = [
139-
":sky",
140-
]
141-
}
142-
143115
group("sdk") {
144116
deps = [
145117
":sky",
146-
":material_design_icons",
147118
]
148119
}

sky/sdk/lib/assets/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

sky/sdk/lib/widgets/icon.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class IconTheme extends Inherited {
4141
AssetBundle _initIconBundle() {
4242
if (rootBundle != null)
4343
return rootBundle;
44-
const String _kAssetBase = '/packages/sky/assets/material-design-icons/';
44+
const String _kAssetBase = '/packages/material_design_icons/icons/';
4545
return new NetworkAssetBundle(Uri.base.resolve(_kAssetBase));
4646
}
4747

0 commit comments

Comments
 (0)