Sublime Forum

New logo discussion?

#145

hi andyjeffries,
Great script!, but its weird I have to logout and login again to see the updated icon, any ideas?

0 Likes

#146

[quote=“msthmnd”]hi andyjeffries,
Great script!, but its weird I have to logout and login again to see the updated icon, any ideas?[/quote]

Restarting the app should be enough. On OS X I usually just update the icon by hand;

  1. Right-click Sublime Text 2.app
  2. Show Package Contents
  3. open “Contents”, then “Resources”
  4. paste/drag your replacement icon (has to be named “Sublime Text 2.icns” and of the “Apple icon image” format)
  5. if currently open, close and reopen Sublime Text 2

The only think I am not 100% certain of is whether you need Apple’s developers tools (Xcode) installed for the Show Package Contents to work. But if you do have these, they also come with /Developer/Applications/Utilities/Icon Composer.app which lets you assemble your own icon, which you can then save as “Sublime Text 2.icns” for use with ST2.

I have my 3D-S-thingie icon saved and can just drag it into the Contents/Resources directory should an update “break” my custom icon. :smile:

0 Likes

#147

@smoofles

  • thanks for the reply, here’s the thing, if I update the icon by hand, and restart the app, I don’t need to logout, but if I used the script, I know the icon is updated if I checked it under Resources, but I have to logout to see the change.
0 Likes

#148

If anyone’s interested, my alternative icon can be found here: http://boundincode.com/#portfolio

0 Likes

#149

[quote=“smoofles”]On OS X I usually just update the icon by hand;

  1. Right-click Sublime Text 2.app
  2. Show Package Contents
  3. open “Contents”, then “Resources”
  4. paste/drag your replacement icon (has to be named “Sublime Text 2.icns” and of the “Apple icon image” format)
  5. if currently open, close and reopen Sublime Text 2
    [/quote]

You can also just Get Info on the app, then drag the new icon into the icon spot in the upper-left of the info window.

0 Likes

#150

How about something simple like:

0 Likes

#151

I used to do that, but if you’re just dragging images there’s no guarantee that the “clickable” mask will work nicely (it will just take the icon’s alpha image) and, again if you’re dragging a PNG, the smaller versions are computed by OS X on the fly, instead of taking the smaller versions of the icon that are packaged within an .icons file. With icons that are square in the first place that’s not really a problem, but any more “complicated” icons tend to have special, optimized smaller icons that drop details, change shape, etc in order to work better at the small size.

Still, not a problem for a texteditor, really, especially if one is mostly starting it via the command line and such. :smile:

0 Likes

#152

[quote=“msthmnd”]@smoofles

  • thanks for the reply, here’s the thing, if I update the icon by hand, and restart the app, I don’t need to logout, but if I used the script, I know the icon is updated if I checked it under Resources, but I have to logout to see the change.[/quote]

Weird, I thought simply restarting the app would do it? Perhaps it’s a cache thing, which means there’s probably no solution for it aside from restarting the app.

0 Likes

#153

[quote=“doppopp”]http://i.imgur.com/tjfAO.jpg

Inspiration from Adobe icons.
Icon used is from iconSweets2[/quote]

VERY nice, care to share the actual icon with us, so we can use it for the time being, while we wait for the name and icon to be changed for the final release?

0 Likes

#154

[quote=“msthmnd”]hi andyjeffries,
Great script!, but its weird I have to logout and login again to see the updated icon, any ideas?[/quote]

No idea, sorry. It seems to work for me if the app has been closed for a while (e.g. overnight). I just ignore it for the day I run the script.

0 Likes

#155

[quote=“DJMurtz”]

Inspiration from Adobe icons.
Icon used is from iconSweets2

VERY nice, care to share the actual icon with us, so we can use it for the time being, while we wait for the name and icon to be changed for the final release?[/quote]

I second this motion, that’s a wonderful icon and very fitting for Sublime Text.

0 Likes

#156

[quote=“willy1234x1”]

I second this motion, that’s a wonderful icon and very fitting for Sublime Text.[/quote]

+3rd this motion

0 Likes

#157

You can also just Get Info on the app, then drag the new icon into the icon spot in the upper-left of the info window.[/quote]

Or you can use this shell script: gist.github.com/1597251

Be sure to chmod +x the script after downloading it so it can be executed directly.

0 Likes

#158

Thanks for the feedback!

Made some small changes to the icon:
http://dl.dropbox.com/u/3807864/pictures/sublime.png http://dl.dropbox.com/u/3807864/pictures/sublime2.png http://dl.dropbox.com/u/3807864/pictures/sublime3.png

I’ve made a small icon for Windows 7 taskbar, which is what I use currently:

Download 32x32 ico here
Download the PSD here

Feel free to use the PSD for whatever you like.

0 Likes

#159

[quote=“doppopp”]Thanks for the feedback!

Made some small changes to the icon:
http://dl.dropbox.com/u/3807864/pictures/sublime.png http://dl.dropbox.com/u/3807864/pictures/sublime2.png http://dl.dropbox.com/u/3807864/pictures/sublime3.png

I’ve made a small icon for Windows 7 taskbar, which is what I use currently:

Download 32x32 ico here
Download the PSD here

Feel free to use the PSD for whatever you like.[/quote]

Love it! But with Windows 7 and Mac OS X both supporting 256x256 icons (and above) it would be great to have!

0 Likes

#160

The pngs in my post should be 256x256 24bits. Can you use those?

0 Likes

#161

A tip for Windows users:

To change the program icon as it appears on the taskbar while running, you need to change the icon in the exe file. I found this program that will let you do it easily

angusj.com/resourcehacker/

Make a batch file you can run whenever you update ST. Change path as needed.

d:\bin\reshacker\ResHacker.exe -addoverwrite D:\bin\Sublime2\sublime_text.exe, D:\bin\Sublime2\sublime_text.exe, d:\download\sublime.ico, Icon, 1,

I’ve tested this on Win7 x64. There’s a warning in the log file but it seems to work fine.

Also, you can use this online tool

convertico.com/

to convert png to ico.

0 Likes

#162

Here’s a quick icon I made:

http://dribbble.com/system/users/2613/screenshots/382409/screen_shot_2012-01-12_at_8.45.07_pm.png?1326368911

Download here

0 Likes

#163

[quote=“aparajita”]
Or you can use this shell script: gist.github.com/1597251

Be sure to chmod +x the script after downloading it so it can be executed directly.[/quote]

Just wrote an Alfred extension for easy replacing ST2 icon based on aparajita’s script:

github.com/lucifr/Alfred-Extens … dextension

0 Likes

#164

One more solution for semi-automatically changing the icon(s) in mac. I target the whole folder because i also change the filetype icons.

Applescript:

tell application "Finder" duplicate items in alias "Macintosh HD:Users:YOUR USERNAME:Documents:st2-custom-icons" to alias "Macintosh HD:Applications:Sublime Text 2.app:Contents:Resources" with replacing end tell

I run it with Alfred

0 Likes