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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Maintainer: David Rosenstrauch <darose@darose.net>
pkgname="adwaita-dark-darose"
pkgver=3.28
pkgrel=4
pkgdesc="Adwaita theme hacked to use my custom color scheme. (Dark blues instead of greys. Works nicely with wallpaper-lightning)"
url="http://darose.net/theme-adwaita-dark-darose.png"
license=('GPL')
arch=('any')
makedepends=('glib2' 'gtk3')
depends=('gnome-themes-extra')
optdepends=('wallpaper-lightning')
source=('no-source.txt')
md5sums=('SKIP')
build() {
mkdir "${srcdir}/${pkgname}"
cd "${srcdir}/${pkgname}"
cp -r /usr/share/themes/Adwaita-dark/gtk-2.0 .
mkdir gtk-3.0
for f in $(gresource list /usr/lib/libgtk-3.so.0 | grep Adwaita | grep -v assets); do
gresource extract /usr/lib/libgtk-3.so.0 $f > gtk-3.0/$(basename $f)
done
echo '@import url("gtk-contained-dark.css");' > gtk-3.0/gtk.css
echo '@import url("gtk-contained-dark.css");' > gtk-3.0/gtk-dark.css
sed -i 's|#262626|#181c28|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#262626|#181c28|g' gtk-2.0/gtkrc
sed -i 's|#2b3032|#181c28|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2b3032|#181c28|g' gtk-2.0/gtkrc
sed -i 's|#2c3234|#181c28|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2c3234|#181c28|g' gtk-2.0/gtkrc
sed -i 's|#313131|#181c28|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#313131|#181c28|g' gtk-2.0/gtkrc
sed -i 's|#33393b|#181c28|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#33393b|#181c28|g' gtk-2.0/gtkrc
sed -i 's|#353535|#181c28|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#353535|#181c28|g' gtk-2.0/gtkrc
sed -i 's|#232729|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#232729|#00001b|g' gtk-2.0/gtkrc
sed -i 's|#252a2c|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#252a2c|#00001b|g' gtk-2.0/gtkrc
sed -i 's|#272c2e|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#272c2e|#00001b|g' gtk-2.0/gtkrc
sed -i 's|#282828|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#282828|#00001b|g' gtk-2.0/gtkrc
sed -i 's|#2c3233|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2c3233|#00001b|g' gtk-2.0/gtkrc
sed -i 's|#2d2d2d|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2d2d2d|#00001b|g' gtk-2.0/gtkrc
sed -i 's|#2e2e2e|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2e2e2e|#00001b|g' gtk-2.0/gtkrc
sed -i 's|#303030|#00001b|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#303030|#00001b|g' gtk-2.0/gtkrc
sed -i 's|35, 39, 41|0, 0, 27|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|35, 39, 41|0, 0, 27|g' gtk-2.0/gtkrc
sed -i 's|46, 46, 46|0, 0, 27|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|46, 46, 46|0, 0, 27|g' gtk-2.0/gtkrc
sed -i 's|color: #eeeeec; font-weight: normal|color: #919494; font-weight: bold|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|color: #eeeeec; font-weight: normal|color: #919494; font-weight: bold|g' gtk-2.0/gtkrc
sed -i 's|#ffffff|#eeeeec|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#ffffff|#eeeeec|g' gtk-2.0/gtkrc
sed -i 's|white|#eeeeec|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|white|#eeeeec|g' gtk-2.0/gtkrc
sed -i 's|#262b2d|#1a1e2c|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#262b2d|#1a1e2c|g' gtk-2.0/gtkrc
sed -i 's|#2f2f2f|#1a1e2c|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2f2f2f|#1a1e2c|g' gtk-2.0/gtkrc
sed -i 's|#15539e|#566b96|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#15539e|#566b96|g' gtk-2.0/gtkrc
sed -i 's|#215d9c|#566b96|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#215d9c|#566b96|g' gtk-2.0/gtkrc
sed -i 's|#2d3234|#1c202e|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2d3234|#1c202e|g' gtk-2.0/gtkrc
sed -i 's|#323232|#1c202e|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#323232|#1c202e|g' gtk-2.0/gtkrc
sed -i 's|#272c2d|#171b27|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#272c2d|#171b27|g' gtk-2.0/gtkrc
sed -i 's|#1e1e1e|#101420|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#1e1e1e|#101420|g' gtk-2.0/gtkrc
sed -i 's|#373737|#293045|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#373737|#293045|g' gtk-2.0/gtkrc
sed -i 's|#2b2b2b|#0b0b20|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2b2b2b|#0b0b20|g' gtk-2.0/gtkrc
# dark gradient
sed -i 's|#25292b|#171b27|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#25292b|#171b27|g' gtk-2.0/gtkrc
sed -i 's|#2a2e30|#1c202e|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2a2e30|#1c202e|g' gtk-2.0/gtkrc
sed -i 's|#2e3436|#293045|g' gtk-3.0/gtk-contained-dark.css
sed -i 's|#2e3436|#293045|g' gtk-2.0/gtkrc
mkdir gtk-3.0/assets
for f in $(gresource list /usr/lib/libgtk-3.so.0 | grep Adwaita/assets); do
gresource extract /usr/lib/libgtk-3.so.0 $f > gtk-3.0/assets/$(basename $f)
done
sed -i 's|stepper: false|stepper: true|g' gtk-3.0/gtk-contained-dark.css
cp /usr/share/themes/Adwaita-dark/index.theme .
sed -i 's|Adwaita-dark|Adwaita-dark-darose|' index.theme
}
package() {
cd "${srcdir}/"
install -d -m 755 "${pkgdir}/usr/share/themes/"
cp -r "${pkgname}" "${pkgdir}/usr/share/themes/"
}
|