Create 96x96 icons for gnome-shell

This commit is contained in:
Adrian Heine
2018-01-20 13:05:18 +01:00
committed by Simon Tatham
parent 5247edd16d
commit 43b9eb1472

View File

@ -11,6 +11,9 @@ WEB = $(patsubst %,%-web.png,$(PUZZLES))
IBASE = $(patsubst %,%-ibase.png,$(PUZZLES))
IBASE4 = $(patsubst %,%-ibase4.png,$(PUZZLES))
P96D24 = $(patsubst %,%-96d24.png,$(PUZZLES))
P96D8 = $(patsubst %,%-96d8.png,$(PUZZLES))
P96D4 = $(patsubst %,%-96d4.png,$(PUZZLES))
P48D24 = $(patsubst %,%-48d24.png,$(PUZZLES))
P48D8 = $(patsubst %,%-48d8.png,$(PUZZLES))
P48D4 = $(patsubst %,%-48d4.png,$(PUZZLES))
@ -33,7 +36,7 @@ CSP = -set colorspace RGB
base: $(BASE)
web: $(WEB)
pngicons: $(P48D24) $(P32D24) $(P16D24)
pngicons: $(P96D24) $(P48D24) $(P32D24) $(P16D24)
winicons: $(ICONS) $(RC)
gtkicons: $(CICONS)
all: base web pngicons winicons gtkicons
@ -100,7 +103,9 @@ $(IBASE): %-ibase.png: %-base.png
$(IBASE4): %-ibase4.png: %-ibase.png
convert -colors 16 +dither $(CSP) -map $(PIC)win16pal.xpm $^ $@
# Build the 24-bit PNGs for the icons, at three sizes.
# Build the 24-bit PNGs for the icons, at four sizes.
$(P96D24): %-96d24.png: %-ibase.png
$(PIC)square.pl 96 4 $^ $@
$(P48D24): %-48d24.png: %-ibase.png
$(PIC)square.pl 48 4 $^ $@
$(P32D24): %-32d24.png: %-ibase.png
@ -110,7 +115,7 @@ $(P16D24): %-16d24.png: %-ibase.png
# The 8-bit icon PNGs are just custom-paletted quantisations of the
# 24-bit ones.
$(P48D8) $(P32D8) $(P16D8): %d8.png: %d24.png
$(P96D8) $(P48D8) $(P32D8) $(P16D8): %d8.png: %d24.png
convert -colors 256 $^ $@
# But the depth-4 images work better if we re-shrink from the
@ -118,6 +123,10 @@ $(P48D8) $(P32D8) $(P16D8): %d8.png: %d24.png
# again afterwards. (They're still not very good, but my hope is
# that on most modern Windows machines this won't matter too
# much...)
$(P96D4): %-96d4.png: %-ibase4.png
$(PIC)square.pl 96 1 $^ $@-tmp2.png
convert -colors 16 $(CSP) -map $(PIC)win16pal.xpm $@-tmp2.png $@
rm -f $@-tmp2.png
$(P48D4): %-48d4.png: %-ibase4.png
$(PIC)square.pl 48 1 $^ $@-tmp2.png
convert -colors 16 $(CSP) -map $(PIC)win16pal.xpm $@-tmp2.png $@
@ -146,7 +155,7 @@ $(RC): %.rc:
echo '200 ICON "$*.ico"' >> $@
# Build the GTK icon source files.
$(CICONS): %-icon.c: %-16d24.png %-32d24.png %-48d24.png
$(CICONS): %-icon.c: %-16d24.png %-32d24.png %-48d24.png %-96d24.png
$(PIC)cicon.pl $^ > $@
clean: