diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-11-13 01:15:56 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-11-13 01:15:56 +0000 |
commit | 300053d80070e2c88e5acf84bfc2bd4356855fd5 (patch) | |
tree | f7bb0cbf3c2166817e3d8b457627ea0bd517e92a /image/make-icons | |
parent | a54a816f92eaf283dc48a22abc6b4788e7ad0ae6 (diff) |
Set a transparency threshold for the XPM icons. Have the make-icons script
constify the XPMs.
svn path=/trunk/; revision=19883
Diffstat (limited to 'image/make-icons')
-rwxr-xr-x | image/make-icons | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/image/make-icons b/image/make-icons index 866ef4ba17..e7e6018094 100755 --- a/image/make-icons +++ b/image/make-icons @@ -3,14 +3,19 @@ RESOLUTIONS="64 48 32 16" CONVERT=convert +XPM_OPTS="-channel A -threshold 50%" for RES in 64 48 32 16 ; do $CONVERT -resize ${RES}x${RES} wsicon256.png wsicon${RES}.png - $CONVERT -resize ${RES}x${RES} wsicon256.png wsicon${RES}.xpm + $CONVERT -resize ${RES}x${RES} $XPM_OPTS wsicon256.png xpm:- | \ + sed -e "s/^static char \*-/static const char *wsicon${RES}_xpm/" > \ + wsicon${RES}.xpm done for RES in 48 32 16 ; do - $CONVERT -resize ${RES}x${RES} wsiconcap256.png wsiconcap${RES}.xpm + $CONVERT -resize ${RES}x${RES} $XPM_OPTS wsiconcap256.png xpm:- | \ + sed -e "s/^static char \*-/static const char *wsiconcap${RES}_xpm/" > \ + wsiconcap${RES}.xpm done |