-
Notifications
You must be signed in to change notification settings - Fork 11
/
copy_icons.sh
executable file
·60 lines (50 loc) · 1.11 KB
/
copy_icons.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
# bower install material-design-icons
ext="png"
source="./bower_components/material-design-icons"
target="./gearshift/src/main/res/drawable"
copy_icons() {
for size in $1; do
for icon in $2; do
dirname=$(dirname $icon)
basename=$(basename $icon)
file=$source/$dirname/drawable-$size/${basename}_${3}_${4}.$ext
cp $file $target-$size
done
done
}
sizes="mdpi hdpi xhdpi xxhdpi xxxhdpi"
# Toolbar
icons="
action/ic_done
action/ic_search
av/ic_pause
av/ic_play_arrow
av/ic_my_library_add
content/ic_add
content/ic_forward
content/ic_remove
content/ic_select_all
content/ic_sort
navigation/ic_arrow_back
navigation/ic_close
navigation/ic_refresh
toggle/ic_star
toggle/ic_star_half
toggle/ic_star_outline
"
copy_icons "$sizes" "$icons" "white" "24dp"
icons="
file/ic_folder_open
navigation/ic_arrow_drop_down
navigation/ic_arrow_drop_up
navigation/ic_expand_more
navigation/ic_expand_less
"
copy_icons "$sizes" "$icons" 'grey600' "36dp"
icons="
action/ic_info
action/ic_settings
action/ic_settings_remote
"
copy_icons "$sizes" "$icons" 'black' "18dp"