Tweaking Sublime Text themes to take advantage of Retina displays on Windows
06 January 2015
Sublime Text already supports Retina displays on OS X, however it seems that the story is currently a bit different on Windows.
Update – Monday, November 14, 2016: To make this a whole lot easier, I’ve forked buymeasoda/soda-theme into moodmosaic/soda-theme. If you clone moodmosaic/soda-theme, it will show nicely on Retina displays on Windows.
You experience fuzzy fonts when using Sublime Text with Retina displays on Windows, even after updating to a newer version of Sublime Text.
- Navigate to the theme’s root folder
- Search for images matching the pattern
- Copy and paste each image, in-place, by removing the @2x part from the filename, thus replacing any existing one.
If done manually, this can take some time. – Here is a way to automate this with F#:
Save the following F# program to a file:
- Before opening Sublime Text, add the compiler and F# Interactive executables’ folder to PATH. – On my machine they are located in C:\Program Files (x86)\Microsoft SDKs\F#\x.x\Framework\vx.x.
- Open Sublime Text
- Install SublimeREPL.
- Go to Tools > SublimeREPl > F#
- In the F# Interactive prompt type,
#I @"X:\Tools", followed by
You should see something like:
open Sublime.Text.Windows, execute the
patch function by supplying a value for
Default Theme is .zipped in
\Packages\Theme - Default.sublime-package and has to be unzipped first, patched, and then zipped back again.
Enjoy Sublime Text with Retina displays on Windows!