Commit 5136d18c authored by abgr's avatar abgr
Browse files

added xfwm4 themes (still need some work)

parent 88ae975a
[Colors:Button]
BackgroundAlternate=128,128,128
BackgroundNormal=128,128,128
DecorationFocus=0,0,128
DecorationHover=0,0,128
ForegroundActive=255,128,224
ForegroundInactive=127,127,127
ForegroundLink=0,0,238
ForegroundNegative=191,3,3
ForegroundNeutral=176,128,0
ForegroundNormal=16,16,16
ForegroundPositive=0,110,40
ForegroundVisited=85,26,139
[Colors:Selection]
BackgroundAlternate=0,0,128
BackgroundNormal=0,0,128
DecorationFocus=0,0,128
DecorationHover=0,0,128
ForegroundActive=255,128,224
ForegroundInactive=162,162,221
ForegroundLink=0,0,238
ForegroundNegative=156,14,14
ForegroundNeutral=255,221,0
ForegroundNormal=224,224,255
ForegroundPositive=128,255,128
ForegroundVisited=85,26,139
[Colors:Tooltip]
BackgroundAlternate=255,255,128
BackgroundNormal=255,255,128
DecorationFocus=0,0,128
DecorationHover=0,0,128
ForegroundActive=255,128,224
ForegroundInactive=127,127,127
ForegroundLink=0,0,238
ForegroundNegative=191,3,3
ForegroundNeutral=176,128,0
ForegroundNormal=16,16,0
ForegroundPositive=0,110,40
ForegroundVisited=85,26,139
[Colors:View]
BackgroundAlternate=255,255,128
BackgroundNormal=255,255,128
DecorationFocus=0,0,128
DecorationHover=0,0,128
ForegroundActive=255,128,224
ForegroundInactive=127,127,127
ForegroundLink=0,0,238
ForegroundNegative=191,3,3
ForegroundNeutral=176,128,0
ForegroundNormal=16,16,0
ForegroundPositive=0,110,40
ForegroundVisited=85,26,139
[Colors:Window]
BackgroundAlternate=128,128,128
BackgroundNormal=128,128,128
DecorationFocus=0,0,128
DecorationHover=0,0,128
ForegroundActive=255,128,224
ForegroundInactive=127,127,127
ForegroundLink=0,0,238
ForegroundNegative=191,3,3
ForegroundNeutral=176,128,0
ForegroundNormal=16,16,16
ForegroundPositive=0,110,40
ForegroundVisited=85,26,139
[General]
Name=Trellium.source
[WM]
activeBackground=128,128,128
activeBlend=16,16,16
activeForeground=16,16,16
inactiveBackground=128,128,128
inactiveBlend=16,16,16
inactiveForeground=16,16,16
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
selection #000080
bg #808080
bg-border #404040
bg-topleft #f0f0f0
bg-bottomright #505050
bg-hover #909090
bg-pressed #606060
view #ffff80
view-hover #ffff90
text-selection #e0e0ff
text-bg #101010
text-view #101000
selection #4444bb 1
bg #dddddd 0.667
bg-border #000000 0.8
bg-topleft #93ffff 0.375
bg-bottomright #ff9393 0.375
bg-hover #ffffff 0.167
bg-pressed #000000 0.25
view #eeeeee 0.8
view-hover #eeeeee 1
text-selection #ffffff 1
text-bg #000000 1
text-view #000000 1
selection #4444bb 1
bg #181818 0.8
bg-border #000000 0
bg-topleft #ffffff 0.5
bg-bottomright #ffffff 0.125
bg-hover #ffffff 0.167
bg-pressed #000000 1
view #000000 0.667
view-hover #000000 0.833
text-selection #000000 1
text-bg #aaaaaa 1
text-view #aaaaaa 1
selection #4444bb 1
bg #181818 0.8
bg-border #aaaaaa 0.8
bg-topleft #000000 0
bg-bottomright #000000 1
bg-hover #ffffff 0.167
bg-pressed #000000 1
view #000000 0.667
view-hover #000000 0.833
text-selection #000000 1
text-bg #aaaaaa 1
text-view #aaaaaa 1
selection #4444bb 1
bg #8c8c8f 1
bg-border #000000 0.8
bg-topleft #ffffff 0.75
bg-bottomright #000000 0.167
bg-hover #ffffff 0.167
bg-pressed #000000 0.25
view #e7e7e7 0.8
view-hover #e7e7e7 1
text-selection #ffffff 1
text-bg #000000 1
text-view #000000 1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="66"
height="66"
id="svg2"
version="1.1"
inkscape:version="0.92.1 r15371"
sodipodi:docname="decoration.svg">
<sodipodi:namedview
id="base"
pagecolor="#a060a0"
bordercolor="#666666"
borderopacity="1"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:zoom="22.4"
inkscape:cx="28.77"
inkscape:cy="12.4"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:showpageshadow="false"
inkscape:window-width="1866"
inkscape:window-height="1055"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:snap-bbox="false"
inkscape:bbox-nodes="true">
<inkscape:grid
spacingy="1"
spacingx="1"
originy="16"
originx="0"
snapvisiblegridlinesonly="true"
enabled="true"
visible="true"
empspacing="5"
id="grid2985"
type="xygrid" />
</sodipodi:namedview>
<defs
id="defs4">
<linearGradient
id="linearGradient4889"
inkscape:collect="always">
<stop
id="stop4885"
offset="0"
style="stop-color:#f0f0f0;stop-opacity:1;" />
<stop
id="stop4887"
offset="1"
style="stop-color:#505050;stop-opacity:1" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="46"
x2="6"
y1="43"
x1="3"
id="linearGradient4891"
xlink:href="#linearGradient4889"
inkscape:collect="always" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="36"
x2="16"
y1="33"
x1="13"
id="linearGradient4899"
xlink:href="#linearGradient4889"
inkscape:collect="always" />
</defs>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Layer 1"
transform="translate(-5,-5)">
<g
id="g11674">
<rect
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:8.45808411;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none"
id="decoration-center"
width="54"
height="54"
x="11"
y="11" />
<g
transform="translate(5,-25)"
id="decoration-topleft">
<path
inkscape:connector-curvature="0"
id="path4718"
d="M 6,31 A 5,5 0 0 0 1,36 H 6 Z"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4521"
d="M 6,30 A 6,6 0 0 0 0,36 H 2 A 4,4 0 0 1 6,32 Z"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4523"
d="M 6,32 A 4,4 0 0 0 2,36 H 3 A 3,3 0 0 1 6,33 Z"
style="opacity:1;vector-effect:none;fill:#f0f0f0;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
<g
transform="translate(52,-25)"
id="decoration-topright">
<path
inkscape:connector-curvature="0"
id="path4718-2"
d="m 13,31 v 5 h 5 a 5,5 0 0 0 -5,-5 z"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4521-6"
d="m 13,30 v 2 a 4,4 0 0 1 4,4 h 2 a 6,6 0 0 0 -6,-6 z"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4523-2"
d="m 13,32 v 1 a 3,3 0 0 1 3,3 h 1 a 4,4 0 0 0 -4,-4 z"
style="opacity:1;vector-effect:none;fill:url(#linearGradient4899);fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
<g
transform="translate(5,22)"
id="decoration-bottomleft">
<path
inkscape:connector-curvature="0"
id="path4718-3"
d="m 1,43 a 5,5 0 0 0 5,5 v -5 z"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4521-1"
d="m 0,43 a 6,6 0 0 0 6,6 V 47 A 4,4 0 0 1 2,43 Z"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4523-27"
d="m 2,43 a 4,4 0 0 0 4,4 V 46 A 3,3 0 0 1 3,43 Z"
style="opacity:1;vector-effect:none;fill:url(#linearGradient4891);fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
<g
transform="translate(52,22)"
id="decoration-bottomright">
<path
inkscape:connector-curvature="0"
id="path4718-7"
d="m 13,43 v 5 a 5,5 0 0 0 5,-5 z"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4521-9"
d="m 17,43 a 4,4 0 0 1 -4,4 v 2 a 6,6 0 0 0 6,-6 z"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<path
inkscape:connector-curvature="0"
id="path4523-3"
d="m 16,43 a 3,3 0 0 1 -3,3 v 1 a 4,4 0 0 0 4,-4 z"
style="opacity:1;vector-effect:none;fill:#505050;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
<g
transform="matrix(10.8,0,0,1,-64.6,-25)"
id="decoration-top">
<rect
y="31"
x="7"
height="5"
width="5"
id="rect4780"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="30"
x="7"
height="2"
width="5"
id="rect4817"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="32"
x="7"
height="1"
width="5"
id="rect4851"
style="opacity:1;vector-effect:none;fill:#f0f0f0;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
<g
transform="matrix(10.8,0,0,1,-64.6,22)"
id="decoration-bottom">
<rect
y="43"
x="7"
height="5"
width="5"
id="rect4780-7"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="47"
x="7"
height="2"
width="5"
id="rect4817-3"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="46"
x="7"
height="1"
width="5"
id="rect4851-1"
style="opacity:1;vector-effect:none;fill:#505050;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
<g
transform="matrix(1,0,0,10.8,5,-388.6)"
id="decoration-left">
<rect
y="37"
x="1"
height="5"
width="5"
id="rect4780-2"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="37"
x="0"
height="5"
width="2"
id="rect4834"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="37"
x="2"
height="5"
width="1"
id="rect4868"
style="opacity:1;vector-effect:none;fill:#f0f0f0;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
<g
transform="matrix(1,0,0,10.8,52,-388.6)"
id="decoration-right">
<rect
y="37"
x="13"
height="5"
width="5"
id="rect4780-9"
style="opacity:1;vector-effect:none;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="37"
x="17"
height="5"
width="2"
id="rect4834-6"
style="opacity:1;vector-effect:none;fill:#404040;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
<rect
y="37"
x="16"
height="5"
width="1"
id="rect4868-2"
style="opacity:1;vector-effect:none;fill:#505050;fill-opacity:1;stroke:none;stroke-width:0.78315598;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:8.30000019;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none" />
</g>
</g>
</g>
</svg>
#!/bin/bash
# Usage: make_theme.sh colors.NAME
colorscheme="$(echo "$1" | sed 's/colors.//')"
displayname="Trellium $colorscheme"
name="$(echo "$displayname" | tr -d ' ')"
rm -rv ../../$name
cp -av .. ../../$name
cd ../../$name/xfwm4
declare -A colors_source
while read key val; do
colors_source[$key]=$val
done < colors
declare -A colors_theme
while read key val alpha; do
colors_theme[$key]=$val
done < "colors.$colorscheme"
declare -A alpha
while read key val alpha; do
alpha[$key]=$alpha
done < "colors.$colorscheme"
sed -i "s/^active_text_color=.*/active_text_color=${colors_theme[text-bg]}/" themerc
sed -i "s/^inactive_text_color=.*/inactive_text_color=${colors_theme[text-bg]}/" themerc
for file in *.svg; do
sed -i '/#ff00ff/s/fill-opacity:1/fill-opacity:0/' $file
for i in ${!colors_source[@]}; do
sed -i "/${colors_source[$i]}/s/fill-opacity:1/fill-opacity:${alpha[$i]}/g" $file
sed -i "/${colors_source[$i]}/s/stop-opacity:1/stop-opacity:${alpha[$i]}/g" $file
done
for i in ${!colors_source[@]}; do
sed -i "s/${colors_source[$i]}/PLACEHOLDER-$i-PLACEHOLDER/g" $file
done
for i in ${!colors_source[@]}; do
sed -i "s/PLACEHOLDER-$i-PLACEHOLDER/${colors_theme[$i]}/g" $file
done
rsvg-convert $file -o $(echo $file | sed 's/\.svg$/.png/')
done
convert decoration.png -crop 6x27+0+0 top-left-active.xpm
convert decoration.png -crop 6x27+60+0 top-right-active.xpm
convert decoration.png -crop 1x27+6+0 title-1-active.xpm
ln -sv title-1-active.xpm title-2-active.xpm
ln -sv title-1-active.xpm title-3-active.xpm
ln -sv title-1-active.xpm title-4-active.xpm
ln -sv title-1-active.xpm title-5-active.xpm
convert decoration.png -crop 3x1+0+6 left-active.xpm
convert decoration.png -crop 3x1+63+6 right-active.xpm
convert decoration.png -crop 1x6+6+60 bottom-active.xpm
convert decoration.png -crop 6x6+0+60 bottom-left-active.xpm
convert decoration.png -crop 6x6+60+60 bottom-right-active.xpm
convert buttons.png -crop 28x27+190+0 close-active.xpm
convert buttons.png -crop 29x27+161+0 maximize-toggled-active.xpm
convert buttons.png -crop 29x27+132+0 maximize-active.xpm
convert buttons.png -crop 29x27+103+0 shade-active.xpm
convert buttons.png -crop 31x27+72+0 hide-active.xpm
convert buttons.png -crop 33x27+39+0 stick-active.xpm
convert buttons.png -crop 37x27+2+0 menu-active.xpm
convert buttons-hover.png -crop 28x27+190+0 close-prelight.xpm
convert buttons-hover.png -crop 29x27+161+0 maximize-toggled-prelight.xpm
convert buttons-hover.png -crop 29x27+132+0 maximize-prelight.xpm
convert buttons-hover.png -crop 29x27+103+0 shade-prelight.xpm
convert buttons-hover.png -crop 31x27+72+0 hide-prelight.xpm
convert buttons-hover.png -crop 33x27+39+0 stick-prelight.xpm
convert buttons-hover.png -crop 37x27+2+0 menu-prelight.xpm
convert buttons-pressed.png -crop 28x27+190+0 close-pressed.xpm
convert buttons-pressed.png -crop 29x27+161+0 maximize-toggled-pressed.xpm
convert buttons-pressed.png -crop 29x27+132+0 maximize-pressed.xpm
convert buttons-pressed.png -crop 29x27+103+0 shade-pressed.xpm
convert buttons-pressed.png -crop 31x27+72+0 hide-pressed.xpm
convert buttons-pressed.png -crop 33x27+39+0 stick-pressed.xpm
convert buttons-pressed.png -crop 37x27+2+0 menu-pressed.xpm
ln -sv stick-pressed.xpm stick-toggled-active.xpm
ln -sv stick-pressed.xpm stick-toggled-prelight.xpm
ln -sv stick-pressed.xpm stick-toggled-pressed.xpm
ln -sv shade-pressed.xpm shade-toggled-active.xpm
ln -sv shade-pressed.xpm shade-toggled-prelight.xpm
ln -sv shade-pressed.xpm shade-toggled-pressed.xpm
for i in *-active.xpm; do
ln -sv $i $(echo $i | sed 's/-active/-inactive/')
done
rm -v colors* *.sh *.colors *.svg *.png
cd -
#!/bin/bash
# Usage: make_theme.sh colors.NAME
colorscheme="$(echo "$1" | sed 's/colors.//')"
displayname="Trellium $colorscheme"
name="$(echo "$displayname" | tr -d ' ')"
rm -rv ../../$name
cp -av .. ../../$name
cd ../../$name/xfwm4
declare -A colors_source
while read key val; do
colors_source[$key]=$val
done < colors
declare -A colors_theme
while read key val alpha; do
colors_theme[$key]=$val
done < "colors.$colorscheme"
declare -A alpha
while read key val alpha; do
alpha[$key]=$alpha
done < "colors.$colorscheme"
sed -i "s/^active_text_color=.*/active_text_color=${colors_theme[text-bg]}/" themerc
sed -i "s/^inactive_text_color=.*/inactive_text_color=${colors_theme[text-bg]}/" themerc
for file in *.svg; do
sed -i '/#ff00ff/s/fill-opacity:1/fill-opacity:0/' $file
for i in ${!colors_source[@]}; do
sed -i "/${colors_source[$i]}/s/fill-opacity:1/fill-opacity:${alpha[$i]}/g" $file
sed -i "/${colors_source[$i]}/s/stop-opacity:1/stop-opacity:${alpha[$i]}/g" $file
done
for i in ${!colors_source[@]}; do
sed -i "s/${colors_source[$i]}/PLACEHOLDER-$i-PLACEHOLDER/g" $file
done
for i in ${!colors_source[@]}; do
sed -i "s/PLACEHOLDER-$i-PLACEHOLDER/${colors_theme[$i]}/g" $file
done
rsvg-convert $file -o $(echo $file | sed 's/\.svg$/.png/')
done
convert decoration.png -crop 6x27+0+0 top-left-active.xpm
convert decoration.png -crop 6x27+60+0 top-right-active.xpm
convert decoration.png -crop 1x27+6+0 title-1-active.xpm
ln -sv title-1-active.xpm title-2-active.xpm
ln -sv title-1-active.xpm title-3-active.xpm
ln -sv title-1-active.xpm title-4-active.xpm
ln -sv title-1-active.xpm title-5-active.xpm
convert decoration.png -crop 3x1+0+6 left-active.xpm
convert decoration.png -crop 3x1+63+6 right-active.xpm
convert decoration.png -crop 1x6+6+60 bottom-active.xpm
convert decoration.png -crop 6x6+0+60 bottom-left-active.xpm
convert decoration.png -crop 6x6+60+60 bottom-right-active.xpm