From ce87c26c0049336ec62ebcf03a93c589c8818d20 Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Sat, 2 Feb 2013 12:45:05 +0100 Subject: Move about icon to include file Getting the about icon to display in various scenarios on MacOSX was a pain. Moving the icon to an include file solved the problem. This commit also fixes the problem Dirk was having when converting satellite.svg to a png in commit cf3c0266c2. I couldn't quite get ImageMagick to preserve transparency and color when converting subsurface-icon.svg, though, so I used Gimp instead. Signed-off-by: Henrik Brautaset Aronsen --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7f8bd1541..ba8fdc0f6 100644 --- a/Makefile +++ b/Makefile @@ -249,15 +249,17 @@ share/locale/%.UTF-8/LC_MESSAGES/subsurface.mo: po/%.po po/%.aliases done; \ fi -# this should work but it doesn't preserve the transparancy - so I manually converted with gimp -# satellite.png: satellite.svg -# convert -resize 11x16 -depth 8 satellite.svg satellite.png +satellite.png: satellite.svg + convert -transparent white -resize 11x16 -depth 8 $< $@ + +# This should work, but it doesn't get the colors quite right - so I manually converted with Gimp +# convert -colorspace RGB -transparent white -resize 256x256 subsurface-icon.svg subsurface-icon.png # -# the following creates the pixbuf data in .h files with the basename followed by '_pixmap' +# The following creates the pixbuf data in .h files with the basename followed by '_pixmap' # as name of the data structure %.h: %.png @echo ' gdk-pixbuf-csource' $< - @gdk-pixbuf-csource --struct --name $*_pixbuf $< > $@ + @gdk-pixbuf-csource --struct --name `echo $* | sed 's/-/_/g'`_pixbuf $< > $@ doc: $(MAKE) -C Documentation doc -- cgit v1.2.3-70-g09d2