Skip to content

Commit

Permalink
Merge pull request #238 from takluyver/Carreau-icons
Browse files Browse the repository at this point in the history
iconset for Jupyter notebook
  • Loading branch information
minrk committed Jul 28, 2015
2 parents 8912455 + 688dc2c commit 2633494
Show file tree
Hide file tree
Showing 23 changed files with 889 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/resources/Info.plist.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Add this into the info.plist file of an application
# and the icns icon in Contents/Resources
# then move the application twice :
# http://superuser.com/questions/178316/how-to-set-an-icon-for-a-file-type-on-mac

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ipynb</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>ipynb_mac_icon</string>
<key>CFBundleTypeName</key>
<string>IPython notebook file</string>
<key>CFBundleTypeRole</key>
<string>None</string>
</dict>
<array>
16 changes: 16 additions & 0 deletions docs/resources/generate_icons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
INKSCAPE=inkscape

${INKSCAPE} -z -C --file=ipynb_icon_16x16.svg --export-png=ipynb_icon_16x16_uncrush.png
${INKSCAPE} -z -C --file=ipynb_icon_24x24.svg --export-png=ipynb_icon_24x24_uncrush.png
${INKSCAPE} -z -C --file=ipynb_icon_32x32.svg --export-png=ipynb_icon_32x32_uncrush.png
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_64x64_uncrush.png -w 64 -h 64
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_128x128_uncrush.png -w 128 -h 128
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_256x256_uncrush.png -w 256 -h 256
${INKSCAPE} -z -C --file=ipynb_icon_512x512.svg --export-png=ipynb_icon_512x512_uncrush.png -w 512 -h 512


for file in `ls *_uncrush.png`; do
pngcrush -brute -l 9 -reduce -rem alla -rem text -rem time -rem gAMA -rem cHRM -rem iCCP -rem sRGB $file `basename $file _uncrush.png`.png
rm $file
done
149 changes: 149 additions & 0 deletions docs/resources/icon_16x16.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
167 changes: 167 additions & 0 deletions docs/resources/icon_24x24.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2633494

Please sign in to comment.