Is it possible to have git gui / gitk look good on a retina Macbook Pro?
I really love git gui and gitk. They work very well for me and I know exactly how to use them. Sadly, they look really pixelated and ugly on my retina macbook. Since it's just text and chrome it would seem on the outset a fairly simple thing to fix. But I've looked around quite a bit for a solution and I haven't found one.
You can also use Retinizer which I guess will edit the Info.plist for you.
https://sites.google.com/a/mikelpr.com/retinizer/
open /System/Library/Frameworks/Tk.framework/Versions/Current/Resources/
Drag&drop Wish into Retinizer. Retinize. Voilà !
The solution pointed by @patrick-browne works like a charm and it is simpler, in fact, given that I already did the another approach pointed by @pius too.
As @joe said, just install retinizer with brew cask, then drag Wish and drop into Retinizer:
$ brew cask install retinizer
$ open /System/Library/Frameworks/Tk.framework/Versions/Current/Resources/
Drag Wish and drop into Retinizer
Update August 28, 2013: The pull request I submitted has been accepted, so I expect the problem will be fixed at the source, hopefully in release 1.9. If you can't wait, follow the work-around presented below.
- Open your terminal and navigate to
/System/Library/Frameworks/Tk.framework/Version/8.5/Resources/
- Use an editor to open the
Info.plist
file inside theWish.app
folder (I usedsudo emacs Wish.app/Contents/Info.plist
) - Add the following two lines to the file, before
</dict>
and save it:<key>NSHighResolutionCapable</key>
<true/> - Make the OS reload the info file. This can be achieved with these commands:
sudo cp -R Wish.app WishCopy.app
sudo mv Wish.app WishOriginal.app
sudo mv WishCopy.app Wish.app - Try running
open Wish.app
to see if it worked. If it did, it should work for gitk as well. - Do the same thing for git gui, but this time do it on the
Git Gui.app
(mine was in/usr/local/git/share/git-gui/lib/
)
Oh, and I should probably mention that I found out about the NSHighResolutionCapable key from the tcl-mac mail-list, specifically from an e-mail by Kevin Walzer.
Here is a screenshot of the nice crisp fonts: