SVN: vfmg/trunk/vfmgrc
sparky
sparky at pld-linux.org
Tue Dec 5 04:27:12 CET 2006
Author: sparky
Date: Tue Dec 5 04:27:08 2006
New Revision: 8068
Modified:
vfmg/trunk/vfmgrc
Log:
- added script for icon unification, effect isn't amazing,
but icons become much nicer default PLD ones
Modified: vfmg/trunk/vfmgrc
==============================================================================
--- vfmg/trunk/vfmgrc (original)
+++ vfmg/trunk/vfmgrc Tue Dec 5 04:27:08 2006
@@ -19,11 +19,14 @@
#nomenu = 0/1
# terminal used for terminal applications, see terminal list at final
#xterm = string
+# application or in-line script used for scaling/preparing icons
+# see example in 'SAMPLE CONVERT SCRIPT' section
#convert = string
+#convert_post = string
#full_regen = 0/1
#destdir = string
-# DR17 specific:
+# e17 specific:
#
# class and name terminal application will have, you should allways specify both
#termapp_class = string
@@ -294,6 +297,50 @@
strip = 0
+
+### SAMPLE CONVERT SCRIPT ###
+# This script unifies icons, makes them all look like blue balls.
+# Requires: convert and composite from ImageMagick.
+#
+# to use it set options like those:
+# convert = $make_blue_ball "%in" "%out" -geometry 16x16
+# icons_oext = png
+# convert_post = $make_blue_ball_post
+#
+
+[make_blue_ball]
+#!/bin/sh
+
+IN="$1"; shift
+OUT="$1"; shift
+
+[ -d /tmp/mkicons ] || mkdir /tmp/mkicons
+cd /tmp/mkicons
+
+if [ ! -r blue-ball.png ]; then
+ convert -size 64x64 xc:none -draw 'roundRectangle 4,4 60,60 20,20' -negate -channel A -gaussian 0x3 icon-mask.png
+
+ convert -size 64x64 xc:none -fill 'rgba(0,0,50%,0.35)' -draw 'circle 31.5,31.5 31.5,0' blue-circle.png
+ convert -size 64x64 xc:none -draw 'circle 31.5,31.5 31.5,20' -negate -channel A -gaussian 0x8 white-glow.png
+ convert -size 64x64 xc:none -fill 'rgba(100%,100%,100%,0.65)' -draw 'circle 31.5,31.5 31.5,0' white-circle.png
+ composite -compose "src-in" -geometry -13-17 white-glow.png white-circle.png glow.png
+ composite -compose plus blue-circle.png glow.png blue-ball.png
+fi
+
+convert -geometry 64x64 "$IN" ico64.png
+composite -compose "src-in" ico64.png icon-mask.png icon.png
+composite -compose dst-over icon.png blue-ball.png done.png
+convert ${1+"$@"} done.png "$OUT"
+
+[make_blue_ball_post]
+#!/bin/sh
+# clean up when done
+rm -rf /tmp/mkicons
+
+[] # end of section
+
+
+
### TERMINAL information ###
[terminals] # will be skipped, so no comment required
More information about the pld-cvs-commit
mailing list