Home Download Buy Blog Forum Support

Light theme for Sublime

Light theme for Sublime

Postby mvm on Fri Aug 22, 2008 8:56 pm

Here is my quick attempt to build light-color theme for Sublime. It is not beautiful, but fits better then native dark theme to text schemes with light background. Finally I want to approach to something like Intype editor look, that is native Windows XP + some fancy additions. From what I saw building the theme, Sublime has rather flexible and powerful theming capabilities. It seems that it is (or will be with some work) possible to mimic both Windows Vista and Windows XP with themes, so there is no need to build version with native controls.

Light1 theme screenshot
Light1.png (28.66 KiB) Viewed 16461 times

To install, unzip archive Light1.zip and copy folder "Theme - Light1" into Sublime's User folder (mine is C:\Documents and Settings\<<<my user name>>>\Application Data\Sublime Text\Packages\User). Then in menu select Preferences -> Apply Theme -> User -> Theme - Light1 -> Light1.

There are my questions on themes:
  • What is font.backgroundColor for? Clear text rendering occurs when it is set to control's background color. My theme has controls with different background colors (white, gray and blue), and only one font.backgroundColor setting exist in theme. So can font.backgroundColor be disabled, or can I set it to different colors for different controls?

  • How to revert color of text, when control gets focus and its color changes from light to dark?

  • Is it possible to increase vertical scrollbar width (and horizontal scrollbar height)?

  • How to change picture color of buttons indicating panel layout (single, vertical double ...)? Filling of native icons with black color doesn't work.
Light1 theme for Sublime text
(176.96 KiB) Downloaded 765 times
Posts: 26
Joined: Mon Mar 31, 2008 6:11 pm

Re: Light theme for Sublime

Postby jps on Thu Sep 25, 2008 3:40 pm

I meant to reply to this earlier - great stuff!

As you've seen though, there are a few significant limitations of the theming.

  • Due to a limitation in the text rendering, text must always be rendered against a single colour background, which prevents you from being able to change the background colour for mouse-over effects.
  • There isn't enough ability to assign different fonts to different controls. This is reasonable to fix.
  • Scrollbar width/height is configurable in the theme in the latest beta (via size.scrollbarCrossExtent) - it was an oversight that this wasn't exposed.
  • re: icons, I'm not sure what's going on there, I'll have to take a look at it.

Site Admin
Posts: 3217
Joined: Wed Mar 19, 2008 12:33 pm

Return to Plugin Announcements

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests