diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-08-29 21:26:15 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-09-01 12:24:53 +0200 |
commit | 303096bcb2b5f52ea51d5d7ddb738689b08a0a2f (patch) | |
tree | 8a5bf2b2fe1d312b682281e53cade4808266044d /TOOLS | |
parent | 4d62b90f88aaed64775fdf6f0866e5ee5b3f9328 (diff) | |
download | mpv-303096bcb2b5f52ea51d5d7ddb738689b08a0a2f.tar.bz2 mpv-303096bcb2b5f52ea51d5d7ddb738689b08a0a2f.tar.xz |
change application icon
I would like to thank Chris Ward (@tenzerothree, http://tenzerothree.com/) for
working on the art for these icons and bringing some eye candy to the project.
The PSDs made by Chris are available on our Dropbox [1], along with the exports
I made to create OSX and Windows icons. The PSDs are almost completly vector
and all the resolutions look really similar, except the 16px favicon which was
handcrafted to look better and more recognizeable on the smaller pixel budget.
For Mac OS X the icons were created using iconutils on the PNGs iconsets
exported from the PSDs. These even support retina resolutions (except 512@2x).
For Windows the .ico file was created with imagemagick. The included images
are 16px, 24px, 32px, 48px 64px, 256px. These are the resolutions listed on
MSDN for supporting Windows XP [2] and Windows versions based on Aero [3].
Only 32bit PNGs were used since it is 2013.
For Linux nothing changed yet, even though @wm4 talked about using the PNGs
directly there. This will probably be dealt with in a later commit.
[1]: https://www.dropbox.com/sh/yelfoj9tbft7o06/A8vOT6JKaG
[2]: http://msdn.microsoft.com/en-us/library/ms997636.aspx
[3]: http://msdn.microsoft.com/en-us/library/aa511280.aspx
Diffstat (limited to 'TOOLS')
-rw-r--r-- | TOOLS/osxbundle/mpv.app/Contents/Info.plist | 6 | ||||
-rw-r--r-- | TOOLS/osxbundle/mpv.app/Contents/Resources/audio.icns | bin | 64076 -> 0 bytes | |||
-rw-r--r-- | TOOLS/osxbundle/mpv.app/Contents/Resources/document.icns | bin | 0 -> 311266 bytes | |||
-rw-r--r-- | TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns | bin | 142486 -> 742954 bytes | |||
-rw-r--r-- | TOOLS/osxbundle/mpv.app/Contents/Resources/movie.icns | bin | 157126 -> 0 bytes | |||
-rw-r--r-- | TOOLS/osxbundle/mpv.app/Contents/Resources/subtitles.icns | bin | 63323 -> 0 bytes | |||
-rwxr-xr-x | TOOLS/svg2ico.sh | 64 |
7 files changed, 3 insertions, 67 deletions
diff --git a/TOOLS/osxbundle/mpv.app/Contents/Info.plist b/TOOLS/osxbundle/mpv.app/Contents/Info.plist index d19c83564e..4661981803 100644 --- a/TOOLS/osxbundle/mpv.app/Contents/Info.plist +++ b/TOOLS/osxbundle/mpv.app/Contents/Info.plist @@ -35,7 +35,7 @@ <string>wma</string> </array> <key>CFBundleTypeIconFile</key> - <string>audio.icns</string> + <string>document.icns</string> <key>CFBundleTypeName</key> <string>Audio file</string> <key>CFBundleTypeRole</key> @@ -122,7 +122,7 @@ <string>wmv</string> </array> <key>CFBundleTypeIconFile</key> - <string>movie.icns</string> + <string>document.icns</string> <key>CFBundleTypeName</key> <string>Movie file</string> <key>CFBundleTypeRole</key> @@ -157,7 +157,7 @@ <string>utf</string> </array> <key>CFBundleTypeIconFile</key> - <string>subtitles.icns</string> + <string>document.icns</string> <key>CFBundleTypeName</key> <string>Subtitles file</string> <key>CFBundleTypeRole</key> diff --git a/TOOLS/osxbundle/mpv.app/Contents/Resources/audio.icns b/TOOLS/osxbundle/mpv.app/Contents/Resources/audio.icns Binary files differdeleted file mode 100644 index 239b9bab12..0000000000 --- a/TOOLS/osxbundle/mpv.app/Contents/Resources/audio.icns +++ /dev/null diff --git a/TOOLS/osxbundle/mpv.app/Contents/Resources/document.icns b/TOOLS/osxbundle/mpv.app/Contents/Resources/document.icns Binary files differnew file mode 100644 index 0000000000..d6162960b2 --- /dev/null +++ b/TOOLS/osxbundle/mpv.app/Contents/Resources/document.icns diff --git a/TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns b/TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns Binary files differindex eb056f5a15..035a934582 100644 --- a/TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns +++ b/TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns diff --git a/TOOLS/osxbundle/mpv.app/Contents/Resources/movie.icns b/TOOLS/osxbundle/mpv.app/Contents/Resources/movie.icns Binary files differdeleted file mode 100644 index 8c495894a4..0000000000 --- a/TOOLS/osxbundle/mpv.app/Contents/Resources/movie.icns +++ /dev/null diff --git a/TOOLS/osxbundle/mpv.app/Contents/Resources/subtitles.icns b/TOOLS/osxbundle/mpv.app/Contents/Resources/subtitles.icns Binary files differdeleted file mode 100644 index f4c7270691..0000000000 --- a/TOOLS/osxbundle/mpv.app/Contents/Resources/subtitles.icns +++ /dev/null diff --git a/TOOLS/svg2ico.sh b/TOOLS/svg2ico.sh deleted file mode 100755 index 84aadf212b..0000000000 --- a/TOOLS/svg2ico.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh -set -e - -if [ $# -ne 2 ]; then - echo >&2 "Usage: $0 input.svg output.ico" - exit 1 -fi - -# For smooth rendering on high-DPI displays, the standard three app icon sizes -# (16x16, 32x32 and 48x48) have to be scaled to the four Windows DPI settings -# as in the table below: - -# Small Regular Tiles -# 96 DPI (100%) 16x16 32x32 48x48 -# 120 DPI (125%) 20x20 40x40 60x60 -# 144 DPI (150%) 24x24 48x48 72x72 -# 196 DPI (200%) 32x32 64x64 96x96 - -# Also, there should also be an extra large 256x256 icon and some low colour -# 8-bit and 4-bit variants, which are still used in Remote Desktop. - -# Note: Windows Vista has a bug in its icon scaling that makes no sense. -# Instead of following the DPI setting, small icons are always a bit larger -# than they should be at 22x22, 26x26 and 36x36 for 120, 144 and 196 DPI. This -# script doesn't generate icons with those sizes, since computers with Vista -# and a high-DPI display are probably fairly rare these days. - -temppng=".$(basename "$1" .svg)-temp.png" - -inkscape --without-gui --export-png="$temppng" --export-dpi=72 \ - --export-background-opacity=0 --export-width=512 --export-height=512 \ - "$1" >/dev/null 2>&1 - -# Old versions of ImageMagick (like the one in Cygwin) use the wrong gamma when -# exporting icon files. To fix, add -gamma 2.2 after the input file. - -convert png:"$temppng" -filter lanczos2 \ - \( -clone 0 -resize 96x96 \) \ - \( -clone 0 -resize 72x72 \) \ - \( -clone 0 -resize 64x64 \) \ - \( -clone 0 -resize 60x60 \) \ - \( -clone 0 -resize 48x48 \) \ - \( -clone 0 -resize 40x40 \) \ - \( -clone 0 -resize 32x32 \) \ - \( -clone 0 -resize 24x24 \) \ - \( -clone 0 -resize 20x20 \) \ - \( -clone 0 -resize 16x16 \) \ - \( -clone 0 -resize 256x256 \) \ - \( -clone 0 -resize 32x32 \( -clone 0 -alpha opaque -colors 255 \) \ - \( -clone 0 -channel A -threshold 50% \) \ - -delete 0 -compose CopyOpacity -composite -colors 256 \) \ - \( -clone 0 -resize 16x16 \( -clone 0 -alpha opaque -colors 255 \) \ - \( -clone 0 -channel A -threshold 50% \) \ - -delete 0 -compose CopyOpacity -composite -colors 256 \) \ - \( -clone 0 -resize 32x32 \( -clone 0 -alpha opaque -colors 15 \) \ - \( -clone 0 -channel A -threshold 50% \) \ - -delete 0 -compose CopyOpacity -composite -colors 16 \) \ - \( -clone 0 -resize 16x16 \( -clone 0 -alpha opaque -colors 15 \) \ - \( -clone 0 -channel A -threshold 50% \) \ - -delete 0 -compose CopyOpacity -composite -colors 16 \) \ - -delete 0 \ - -define png:compression-level=9 -define png:include-chunk=none ico:"$2" - -rm "$temppng" |