]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use xc:transparent instead of buttons.gif as the base image.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sun, 25 Mar 2007 01:19:47 +0000 (01:19 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sun, 25 Mar 2007 01:19:47 +0000 (01:19 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6396 7a7537e8-13f0-0310-91df-b6672ffda945

tools/buttons.gif [deleted file]
tools/makebuttons

diff --git a/tools/buttons.gif b/tools/buttons.gif
deleted file mode 100644 (file)
index 080dc86..0000000
Binary files a/tools/buttons.gif and /dev/null differ
index 5723ab42400b80fc184531abff184a237e8add67..a6f5b41afafc94f2f491d0081fdbbfd496e94f51 100755 (executable)
@@ -85,9 +85,6 @@ fi
 # Bitstream Vera font...
 font="fonts/Vera.ttf"
 
-# Base image
-base="tools/buttons.gif"
-
 # Colors
 background="#d4d4a4"
 black="#000000"
@@ -162,7 +159,7 @@ function generate_button()
        # First step: generate an image trimmed to the text.
        #  -> annotate a 40x400 rectangle with the provided text
        #  -> trim to the text
-       convert $base -extent 400x40 -fill "$fgclr" \
+       convert xc:transparent -extent 400x40 -fill "$fgclr" \
                -draw "rectangle 0,0 399,39" \
                -fill "#ffffff" -encoding Unicode -pointsize 13 -font "$font" \
                -gravity Center -annotate 0x0+0+0 "$txt" -trim $tmp_btn
@@ -207,7 +204,7 @@ function generate_button()
        btn_w=`expr $txt_w + $rad + $rad`
        btn_top=`expr $btn_h - 1`
 
-       convert $base \
+       convert xc:transparent \
                -extent $btn_w'x'$btn_h -fill "$bgclr" \
                -draw "rectangle 0,0 $btn_w,$btn_h" -fill "$fgclr" \
                -draw "roundRectangle 0,0 `expr $btn_w - 1`,$btn_top `expr $rad - 1`,$rad" \