Commit 432afa4b191f34637f23e1767adc2bdd6a358668
1 parent
02d3946a
Exists in
master
and in
29 other branches
ActionItem93: script for adding icons.
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1011 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
6 changed files
with
40 additions
and
0 deletions
Show diff stats
public/designs/icons/default/README
@@ -17,6 +17,9 @@ gtk-go-up.png Nuovo stock/ | @@ -17,6 +17,9 @@ gtk-go-up.png Nuovo stock/ | ||
17 | gtk-cancel.png Nuovo stock/ | 17 | gtk-cancel.png Nuovo stock/ |
18 | user_icon.png Nuovo apps/ | 18 | user_icon.png Nuovo apps/ |
19 | gnome-other.png Nuovo apps/ | 19 | gnome-other.png Nuovo apps/ |
20 | +gtk-delete.png Nuovo stock/ | ||
21 | +gtk-find.png Nuovo stock/ | ||
22 | +### END OF ICONS LISTING ### | ||
20 | 23 | ||
21 | Licensing of GNOME themes | 24 | Licensing of GNOME themes |
22 | ========================= | 25 | ========================= |
@@ -0,0 +1,35 @@ | @@ -0,0 +1,35 @@ | ||
1 | +#!/bin/sh | ||
2 | + | ||
3 | +ICON=$1 | ||
4 | +THEME=$2 | ||
5 | +SVG=$3 | ||
6 | + | ||
7 | +if [ -z $ICON ] || [ -z $THEME ] || [ -z $SVG ]; then | ||
8 | + echo "use: $0 <ICON> <THEME> <ICON>" | ||
9 | + echo "example:" | ||
10 | + echo " $0 close Nuovo stock/gtk-close.svg" | ||
11 | + exit 1 | ||
12 | +fi | ||
13 | + | ||
14 | +SECTION="$(dirname $SVG)/" | ||
15 | +PNG=$(basename $SVG | sed -e 's/\.svg/\.png/') | ||
16 | +SVGFILE=/usr/share/icons/$THEME/scalable/$SVG | ||
17 | + | ||
18 | +if [ ! -f $SVGFILE ]; then | ||
19 | + echo "$SVGFILE not found, stopping." | ||
20 | + exit 2 | ||
21 | +fi | ||
22 | + | ||
23 | +rsvg -h 24 -h 24 $SVGFILE $PNG | ||
24 | + | ||
25 | +if [ ! -f $PNG ]; then | ||
26 | + echo "Error creating $PNG, stopping." | ||
27 | + exit 2 | ||
28 | +fi | ||
29 | + | ||
30 | +svn add $PNG | ||
31 | + | ||
32 | +LINE=$(printf "%-25s %-12s %s" $PNG $THEME $SECTION) | ||
33 | +sed -i -e "s!### END OF ICONS LISTING ###!$LINE\n&!" README | ||
34 | + | ||
35 | +echo ".button.$ICON { background-image: url($PNG); }" >> style.css |
884 Bytes
871 Bytes
public/designs/icons/default/gtk-open.png
public/designs/icons/default/style.css
@@ -9,3 +9,5 @@ | @@ -9,3 +9,5 @@ | ||
9 | .button.cancel { background-image: url(gtk-cancel.png); } | 9 | .button.cancel { background-image: url(gtk-cancel.png); } |
10 | .button.person { background-image: url(user_icon.png); } | 10 | .button.person { background-image: url(user_icon.png); } |
11 | .button.product { background-image: url(gnome-other.png); } | 11 | .button.product { background-image: url(gnome-other.png); } |
12 | +.button.delete { background-image: url(gtk-delete.png); } | ||
13 | +.button.find { background-image: url(gtk-find.png); } |