aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2015-08-09 03:09:26 +0200
committerMax Christian Pohle2015-08-09 03:09:26 +0200
commit41c0dc6e999ec0105a12990736d1069da75817ca (patch)
treeba80e90ec10292f4e81398b0488dac4c3bd3be86
parent4d3b50949361c9725bab7b5dd07b592b11e5a120 (diff)
downloadicons-41c0dc6e999ec0105a12990736d1069da75817ca.tar.bz2
icons-41c0dc6e999ec0105a12990736d1069da75817ca.zip
cleaned up and added a possibility to generate a mime type preview/poster
-rw-r--r--Makefile7
-rw-r--r--scalable/mimetypes/Makefile3
-rwxr-xr-xscalable/mimetypes/generate.sh8
-rw-r--r--scalable/mimetypes/mime_text_plain.icon4
-rw-r--r--scalable/mimetypes/text-plain.icon4
-rw-r--r--scalable/mimetypes/text-x-generic.icon4
-rw-r--r--scalable/mimetypes/text-x-generic.pngbin101871 -> 0 bytes
-rw-r--r--scalable/mimetypes/text-x-script.pngbin267918 -> 0 bytes
8 files changed, 5 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index 754dd56..a55858e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,10 @@ all: clean
4generate: preview.png versions update-cache 4generate: preview.png versions update-cache
5 5
6preview.png: 6preview.png:
7 $(shell find "scalable/" -type f -name "*.png" -not -path ".git/*" -not -path 'scalable/animations/*' | sort | feh -m -y 96 -E 96 -s -p -b trans -O preview.png -f-) 7 $(shell find "scalable/" -type f -name "*.png" -not -path ".git/*" -not -path 'scalable/animations/*' -not -path 'scalable/mimetypes/*' | sort | feh -m -y 96 -E 96 -s -p -b trans -O preview.png -f-)
8
9preview_mimetypes.png:
10 $(shell find "scalable/mimetypes" -type f -name "*.png" | sort | feh -m -y 256 -E 256 -W 8192 -s -p -b trans -O preview_mimetypes.png -f-)
8 11
9versions: 12versions:
10 find scalable/ -name '*.png' -exec ./generate.sh '{}' \; 13 find scalable/ -name '*.png' -exec ./generate.sh '{}' \;
@@ -13,4 +16,4 @@ update-cache:
13 gtk-update-icon-cache `pwd` 16 gtk-update-icon-cache `pwd`
14 17
15clean: 18clean:
16 rm -f preview.png 19 rm -f preview.png preview_mimetypes.png
diff --git a/scalable/mimetypes/Makefile b/scalable/mimetypes/Makefile
deleted file mode 100644
index 2be3891..0000000
--- a/scalable/mimetypes/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
1all:
2 xargs -a /usr/share/mime/globs printf "%s\n"
3 convert text-x-generic.png -gravity center -pointsize 70 -stroke '#444' -strokewidth 2 -annotate -15 'kackshit' -fill '#ff0' -annotate -15 'kackshit' output.png
diff --git a/scalable/mimetypes/generate.sh b/scalable/mimetypes/generate.sh
deleted file mode 100755
index d0c19c5..0000000
--- a/scalable/mimetypes/generate.sh
+++ /dev/null
@@ -1,8 +0,0 @@
1IFS=':'
2while read A B
3do
4 FILE=${A/\//-}
5 TEXT=${B/\*\./}
6 printf "%s ---- %s\n" $FILE $TEXT
7 convert text-x-generic.png -gravity center -pointsize 70 -stroke '#444' -strokewidth 2 -annotate -15 "$TEXT" -fill '#ff0' -annotate -15 "$TEXT" output/$FILE.png
8done < /usr/share/mime/globs
diff --git a/scalable/mimetypes/mime_text_plain.icon b/scalable/mimetypes/mime_text_plain.icon
deleted file mode 100644
index 6068181..0000000
--- a/scalable/mimetypes/mime_text_plain.icon
+++ /dev/null
@@ -1,4 +0,0 @@
1[Icon Data]
2DisplayName=Mime text/plain
3EmbeddedTextRectangle=8,8,40,40
4AttachPoints=20,20|40,40|50,10|10,50
diff --git a/scalable/mimetypes/text-plain.icon b/scalable/mimetypes/text-plain.icon
deleted file mode 100644
index 0111a44..0000000
--- a/scalable/mimetypes/text-plain.icon
+++ /dev/null
@@ -1,4 +0,0 @@
1[Icon Data]
2DisplayName=Mime text/plain
3EmbeddedTextRectangle=0,0,256,256
4AttachPoints=20,20|236,236
diff --git a/scalable/mimetypes/text-x-generic.icon b/scalable/mimetypes/text-x-generic.icon
deleted file mode 100644
index a523ec8..0000000
--- a/scalable/mimetypes/text-x-generic.icon
+++ /dev/null
@@ -1,4 +0,0 @@
1[Icon Data]
2DisplayName=Mime text/generic
3EmbeddedTextRectangle=8,8,40,40
4AttachPoints=20,20|40,40|50,10|10,50
diff --git a/scalable/mimetypes/text-x-generic.png b/scalable/mimetypes/text-x-generic.png
deleted file mode 100644
index c10a61c..0000000
--- a/scalable/mimetypes/text-x-generic.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/text-x-script.png b/scalable/mimetypes/text-x-script.png
deleted file mode 100644
index 6eb0d88..0000000
--- a/scalable/mimetypes/text-x-script.png
+++ /dev/null
Binary files differ
..