ref: 43b9eb1472d2a82e5369815511a9ae6681a61a08
parent: 5247edd16dac8f673a03619e1aae76bf10f8eb43
author: Adrian Heine <[email protected]>
date: Sat Jan 20 08:05:18 EST 2018
Create 96x96 icons for gnome-shell
--- a/icons/Makefile
+++ b/icons/Makefile
@@ -11,6 +11,9 @@
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 @@
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 @@
$(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 @@
# 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 @@
# 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 $^ [email protected]
+ convert -colors 16 $(CSP) -map $(PIC)win16pal.xpm [email protected] $@
+ rm -f [email protected]
$(P48D4): %-48d4.png: %-ibase4.png
$(PIC)square.pl 48 1 $^ [email protected]
convert -colors 16 $(CSP) -map $(PIC)win16pal.xpm [email protected] $@
@@ -146,7 +155,7 @@
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: