diff options
Diffstat (limited to 'scalable')
-rw-r--r-- | scalable/mimetypes-templates/application-x-executable.png (renamed from scalable/mimetypes/templates/default/application-x-executable.png) | bin | 194302 -> 194302 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/application-xml-dtd.png (renamed from scalable/mimetypes/templates/default/application-xml-dtd.png) | bin | 238889 -> 238889 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/application.png (renamed from scalable/mimetypes/templates/default/application.png) | bin | 161557 -> 161557 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/audio.png (renamed from scalable/mimetypes/templates/default/audio.png) | bin | 132002 -> 132002 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/file.png (renamed from scalable/mimetypes/templates/default/file.png) | bin | 166650 -> 166650 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/image.png (renamed from scalable/mimetypes/templates/default/image.png) | bin | 166650 -> 166650 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/text-css.png (renamed from scalable/mimetypes/templates/default/text-css.png) | bin | 165568 -> 165568 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/text-x-chdr.png (renamed from scalable/mimetypes/templates/default/text-x-chdr.png) | bin | 270482 -> 270482 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/text-x-csrc.png (renamed from scalable/mimetypes/templates/default/text-x-csrc.png) | bin | 270303 -> 270303 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/text-x-generic.png (renamed from scalable/mimetypes/templates/default/text-x-generic.png) | bin | 166650 -> 166650 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/text-x-makefile.png (renamed from scalable/mimetypes/templates/default/text-x-makefile.png) | bin | 137102 -> 137102 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/text-x-script.png (renamed from scalable/mimetypes/templates/default/text-x-script.png) | bin | 267918 -> 267918 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/text.png (renamed from scalable/mimetypes/templates/default/text.png) | bin | 107109 -> 107109 bytes | |||
-rw-r--r-- | scalable/mimetypes-templates/video.png (renamed from scalable/mimetypes/templates/default/video.png) | bin | 136691 -> 136691 bytes | |||
-rw-r--r-- | scalable/mimetypes/templates/Makefile | 3 | ||||
-rwxr-xr-x | scalable/mimetypes/templates/generate.sh | 63 | ||||
-rw-r--r-- | scalable/mimetypes/templates/test-globs | 4 |
17 files changed, 0 insertions, 70 deletions
diff --git a/scalable/mimetypes/templates/default/application-x-executable.png b/scalable/mimetypes-templates/application-x-executable.png index 92c5515..92c5515 100644 --- a/scalable/mimetypes/templates/default/application-x-executable.png +++ b/scalable/mimetypes-templates/application-x-executable.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/application-xml-dtd.png b/scalable/mimetypes-templates/application-xml-dtd.png index 6e75df0..6e75df0 100644 --- a/scalable/mimetypes/templates/default/application-xml-dtd.png +++ b/scalable/mimetypes-templates/application-xml-dtd.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/application.png b/scalable/mimetypes-templates/application.png index 78ee865..78ee865 100644 --- a/scalable/mimetypes/templates/default/application.png +++ b/scalable/mimetypes-templates/application.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/audio.png b/scalable/mimetypes-templates/audio.png index 1271597..1271597 100644 --- a/scalable/mimetypes/templates/default/audio.png +++ b/scalable/mimetypes-templates/audio.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/file.png b/scalable/mimetypes-templates/file.png index 69fd3ec..69fd3ec 100644 --- a/scalable/mimetypes/templates/default/file.png +++ b/scalable/mimetypes-templates/file.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/image.png b/scalable/mimetypes-templates/image.png index 69fd3ec..69fd3ec 100644 --- a/scalable/mimetypes/templates/default/image.png +++ b/scalable/mimetypes-templates/image.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/text-css.png b/scalable/mimetypes-templates/text-css.png index 64c2aa5..64c2aa5 100644 --- a/scalable/mimetypes/templates/default/text-css.png +++ b/scalable/mimetypes-templates/text-css.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/text-x-chdr.png b/scalable/mimetypes-templates/text-x-chdr.png index 539f127..539f127 100644 --- a/scalable/mimetypes/templates/default/text-x-chdr.png +++ b/scalable/mimetypes-templates/text-x-chdr.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/text-x-csrc.png b/scalable/mimetypes-templates/text-x-csrc.png index d55737a..d55737a 100644 --- a/scalable/mimetypes/templates/default/text-x-csrc.png +++ b/scalable/mimetypes-templates/text-x-csrc.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/text-x-generic.png b/scalable/mimetypes-templates/text-x-generic.png index 69fd3ec..69fd3ec 100644 --- a/scalable/mimetypes/templates/default/text-x-generic.png +++ b/scalable/mimetypes-templates/text-x-generic.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/text-x-makefile.png b/scalable/mimetypes-templates/text-x-makefile.png index bd48fd4..bd48fd4 100644 --- a/scalable/mimetypes/templates/default/text-x-makefile.png +++ b/scalable/mimetypes-templates/text-x-makefile.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/text-x-script.png b/scalable/mimetypes-templates/text-x-script.png index 6eb0d88..6eb0d88 100644 --- a/scalable/mimetypes/templates/default/text-x-script.png +++ b/scalable/mimetypes-templates/text-x-script.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/text.png b/scalable/mimetypes-templates/text.png index 7d7cb76..7d7cb76 100644 --- a/scalable/mimetypes/templates/default/text.png +++ b/scalable/mimetypes-templates/text.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/default/video.png b/scalable/mimetypes-templates/video.png index 6527c94..6527c94 100644 --- a/scalable/mimetypes/templates/default/video.png +++ b/scalable/mimetypes-templates/video.png | |||
Binary files differ | |||
diff --git a/scalable/mimetypes/templates/Makefile b/scalable/mimetypes/templates/Makefile deleted file mode 100644 index f9ca85b..0000000 --- a/scalable/mimetypes/templates/Makefile +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | all: | ||
2 | ./generate.sh /usr/share/mime/generic-icons | ||
3 | ./generate.sh /usr/share/mime/globs | ||
diff --git a/scalable/mimetypes/templates/generate.sh b/scalable/mimetypes/templates/generate.sh deleted file mode 100755 index be8de9c..0000000 --- a/scalable/mimetypes/templates/generate.sh +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | DEFAULT_FILE='file' # .png gets added automatically | ||
2 | #INPUT_FILE=test-globs | ||
3 | #INPUT_FILE=/usr/share/mime/generic-icons < /usr/share/mime/globs | ||
4 | INPUT_FILE=$1 | ||
5 | OUT_PATH="../" | ||
6 | |||
7 | MAX_LINES=`cat $INPUT_FILE | wc -l` | ||
8 | CUR_LINE=0 | ||
9 | |||
10 | IFS=':' | ||
11 | while read A B | ||
12 | do | ||
13 | if [[ "$A" == "#"* ]]; then continue; fi | ||
14 | |||
15 | MIME=$A | ||
16 | FILE=${A/\//-} | ||
17 | TEXT=${B/\*\./} | ||
18 | |||
19 | |||
20 | ((CUR_LINE++)) | ||
21 | printf "[%-4d/%-4d] checking for %s\n" "$CUR_LINE" "$MAX_LINES" "$FILE.png" | ||
22 | |||
23 | if [[ -f "default/$FILE.png" ]]; then | ||
24 | echo "using default." | ||
25 | cp "default/$FILE.png" "$OUT_PATH/$FILE.png" | ||
26 | else | ||
27 | |||
28 | FIND=$FILE | ||
29 | while [[ 1 ]] | ||
30 | do | ||
31 | # printf "%s\n" $FIND | ||
32 | if [[ -f "default/$FIND.png" ]]; then break; fi | ||
33 | |||
34 | if [[ "$FIND" == "${FIND%-*}" ]]; then FIND="$DEFAULT_FILE"; break; fi | ||
35 | FIND=${FIND%-*} | ||
36 | done | ||
37 | |||
38 | # create default file... just in case there is no desktop file... | ||
39 | cp "default/$FIND.png" "$OUT_PATH/$FILE.png" | ||
40 | |||
41 | DESKTOP=`xdg-mime query default $MIME` | ||
42 | if [[ -f /usr/share/applications/$DESKTOP ]]; then | ||
43 | ICONTEXT=`grep -o 'Icon=.*' /usr/share/applications/$DESKTOP` | ||
44 | APPICON=`find ../../ /usr/share/icons/Adwaita/scalable /usr/share/icons/hicolor/scalable -path '*apps*' -name "${ICONTEXT/Icon=/}*" -type f -print -quit` | ||
45 | |||
46 | printf "%-12s%s\t%s\t%s\t%s\n" "" $MIME $DESKTOP $FIND $APPICON | ||
47 | |||
48 | if [[ "$APPICON" ]]; then | ||
49 | convert \ | ||
50 | "default/$FIND.png" \( -density 400 $APPICON -resize 256 \) \ | ||
51 | -gravity north -geometry +0+20 \ | ||
52 | -compose darken -composite $OUT_PATH/$FILE.png | ||
53 | fi | ||
54 | fi | ||
55 | fi | ||
56 | |||
57 | mogrify "$OUT_PATH/$FILE.png" \ | ||
58 | -gravity northwest -pointsize 60 -rotate 90 \ | ||
59 | -stroke '#444' -strokewidth 2 -annotate 0 "${FILE##*-}" \ | ||
60 | -fill '#ff0' -annotate 0 "${FILE##*-}" \ | ||
61 | -rotate -90 -resize 256 $OUT_PATH/$FILE.png | ||
62 | |||
63 | done < $INPUT_FILE | ||
diff --git a/scalable/mimetypes/templates/test-globs b/scalable/mimetypes/templates/test-globs deleted file mode 100644 index 9b062d7..0000000 --- a/scalable/mimetypes/templates/test-globs +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | text/x-csrc:*.c | ||
2 | application/x-blender:*.blend | ||
3 | text/plain:*.txt | ||
4 | application/x-kexiproject-sqlite3:*.kkk | ||