blob: ad665530ba92d141ee6d7b9e89f2dd282551d247 (
plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
post_install() {
_gtkUpdate;
_credits;
}
post_upgrade() {
_gtkUpdate;
_credits;
}
post_remove() {
gtk-update-icon-cache;
}
_gtkUpdate() {
_msg "Updating icon cache"...;
local -ar Themes=(
Amber
ArchBlue
Blue
BlueGrey
BlueGreyDark
Brown
BrownDark
Cyan
DeepOrange
DeepOrangeDark
DeepPurple
Green
Grey
Indigo
KellyGreen
LightBlue
LightGreen
Lime
Orange
Pink
Purple
Red
Shamrock
Teal
Yellow
);
local theme;
for theme in "${Themes[@]}"; do
local dir="Archdroid-${theme}";
local path="usr/share/icons/${dir}";
_msg2 "${dir}";
gtk-update-icon-cache -ftq "${path}";
done;
}
_credits() {
_msg "Credits to Google, Ubuntu Mono, Mint-X, and Numix for this theme";
}
_msg() {
_green "==> ";
_white "$@";
tput sgr 0;
}
_msg2() {
_blue " -> ";
_white "$@";
tput sgr 0;
}
_green() {
_color "2" "${1}";
}
_blue() {
_color "4" "${1}";
}
_white() {
_color "7";
for line ; do
echo "${line}" ;
done ;
}
_color() {
tput bold;
tput setaf "${1}";
if ! [ "${2}" ]; then
return;
fi;
printf "%s" "${2}";
}
# vim: ts=2 sw=2 et:
|