fix the stylesheet of the network icon

This commit is contained in:
Marco Martin 2015-11-17 18:07:25 +01:00
parent 258242fffd
commit a8031b0b00
3 changed files with 4 additions and 8 deletions

View File

@ -1,4 +0,0 @@
[Dolphin]
PreviewsShown=true
Timestamp=2015,10,29,14,1,4
Version=3

View File

@ -257,20 +257,20 @@ echo $reorderXslt > transform.xsl
if grep -q '"current-color-scheme"' $file.svg; then if grep -q '"current-color-scheme"' $file.svg; then
echo replacing the stylesheet echo replacing the stylesheet
xml ed --update "/svg:svg/svg:defs/_:style" -v "$stylesheet" $file.svg > temp.svg xmlstarlet ed --update "/svg:svg/svg:defs/_:style" -v "$stylesheet" $file.svg > temp.svg
else else
echo adding the stylesheet echo adding the stylesheet
xml ed --subnode "/svg:svg/svg:defs" -t elem -n "style" -v "$stylesheet"\ xmlstarlet ed --subnode "/svg:svg/svg:defs" -t elem -n "style" -v "$stylesheet"\
--subnode "/svg:svg/svg:defs/style" -t attr -n "type" -v "text/css"\ --subnode "/svg:svg/svg:defs/style" -t attr -n "type" -v "text/css"\
--subnode "/svg:svg/svg:defs/style" -t attr -n "id" -v "current-color-scheme" $file.svg > temp.svg --subnode "/svg:svg/svg:defs/style" -t attr -n "id" -v "current-color-scheme" $file.svg > temp.svg
fi fi
xml tr transform.xsl temp.svg > temp2.svg xmlstarlet tr transform.xsl temp.svg > temp2.svg
mv temp2.svg temp.svg mv temp2.svg temp.svg
for i in {0..4} for i in {0..4}
do do
xml ed --subnode "//*/*[contains(@style, '${colors[i]}') and not (@class)]" -t attr -n "class" -v "${colorNames[i]}" temp.svg > temp2.svg xmlstarlet ed --subnode "//*/*[contains(@style, '${colors[i]}') and not (@class)]" -t attr -n "class" -v "${colorNames[i]}" temp.svg > temp2.svg
mv temp2.svg temp.svg mv temp2.svg temp.svg