summaryrefslogtreecommitdiffstats
path: root/kexi/pics/blendkdeicons.sh
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kexi/pics/blendkdeicons.sh
downloadkoffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz
koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/pics/blendkdeicons.sh')
-rwxr-xr-xkexi/pics/blendkdeicons.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/kexi/pics/blendkdeicons.sh b/kexi/pics/blendkdeicons.sh
new file mode 100755
index 00000000..47016de6
--- /dev/null
+++ b/kexi/pics/blendkdeicons.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# Generates series of blended icons
+#
+# Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
+#
+
+usage() {
+ echo "USAGE: $0 <modifier_icon> <suffix> <icon> <icon> ..
+example: $0 action-new_sign _newobj action_table action_query
+will result with:
+cr16-action-table.png blended using cr16-action-new_sign.png
+ and saved to cr16-action-table_newobj.png,
+cr22-action-table.png blended using cr22-action-new_sign.png
+ and saved to cr22-action-table_newobj.png,
+cr16-action-query.png blended using cr16-action-new_sign.png
+ and saved to cr16-action-query_newobj.png,
+etc..."
+}
+
+if [ $# -lt 3 ] ; then usage; exit 1; fi
+
+mod=$1
+shift
+suffix=$1
+shift
+
+if [ -z "$mod" -o -z "$suffix" ] ; then
+ usage
+ exit 1
+fi
+
+icon=$1
+while [ -n "$1" ] ; do
+ for size in 16 22 32 ; do
+ mod_file="cr"$size"-"$mod".png"
+ if [ -f "$mod_file" ] ; then
+ for i in `ls "cr"$size"-"$icon".png" 2> /dev/null` ; do
+ blendicons "$i" "$mod_file" `echo $i | sed "s/\.png/"$suffix".png/"`
+ done
+ fi
+ done
+ shift
+ icon=$1
+done
+