Home Download Buy Blog Forum Support

Soda Theme - New features and ST3 support

Soda Theme - New features and ST3 support

Postby buymeasoda on Tue May 21, 2013 1:17 am

Hi folks,

I've pushed some changes through for Soda Theme that I'd like to share.

Folder Icons

A new setting for folder icons has been added that allows folders to be used in the sidebar instead of the arrows.

To activate this feature, add the following configuration rule to your user preferences files. User preferences can be found by going to the menu item: "Preferences -> Settings - User".

Code: Select all
"soda_folder_icons": true


Here is a look at the folder icons:

Image


Sublime Text 3 Support

The other new change is the inclusion of a theme file specifically for Sublime Text 3. This allows new theme features to be added to Soda Theme for ST3 that aren't available in ST2.

I would have liked to keep the theme rules in a single file for both ST2 and ST3 versions, but ST2 will report console errors for theme rules it doesn't understand, so have created an independent file.

After upgrading Soda Theme, you can enable the ST3 version with the following theme setting in your user preferences file:

Soda Light (ST3)

Code: Select all
"theme": "Soda Light 3.sublime-theme"


Soda Dark (ST3)

Code: Select all
"theme": "Soda Dark 3.sublime-theme"


As Sublime Text 3 is currently in beta, this theme can also be considered in beta. For the most part, the theme should not present any issues other than occasions when changes are made to the underlying ST3 theme engine or new UI features are added to the mainline that the theme does not yet have rules for.

The ST3 version of Soda Theme is up to date, save for the "Find panel has a drop down arrow to select previous items" feature added in Build 3033 (beta) and Build 3031 (dev). I will be adding this UI component to the theme shortly.

Updated Instructions

I have updated the project README and the Soda Theme site with complete details on how to configure your user settings to activate the Sublime Text 3 version.

Please take a look at the following pages for more information:



Current Issues and Caveats

I have noticed a few caveats related to custom themes in Sublime Text 3.

Text / Widget fields are rendering incorrectly when the theme is added to "Installed Packages" (eg. via Package Control)

When using the "sublime-package" (zip) format in the "Installed Packages" directory (which is the default for Package Control), text fields for widgets and panels (eg. Find / Replace, Goto Anything, Command Panel etc), are not applying the widget colours correctly. They are instead rendered with the default theme colours.

The reason for this, is that the path for widget theme files such as "Widget - Soda Light.sublime-settings" is hardcoded to the following location:

Code: Select all
"color_scheme": "Packages/Theme - Soda/Soda Light/Widget - Soda Light.stTheme"

However, this path is incorrect when the theme is located in the "Installed Packages" directory, causing the widget rules to not apply.

I've played with different path settings here, removing the fixed Packages portion, but so far my variations haven't allowed this widget theme file to be loaded correctly for both destinations (Packages and Installed Packages).

Jon, is there something I can do to allow this to work? It may require a change to ST3 for the way ST3 treats themes widget file locations. For now the ST3 version will have gray text field backgrounds for text / widget fields.


User experience when upgrading themes via Package Control

The second thing I've noticed when using Package Control (alpha) to upgrade themes, is that the theme upgrading experience is less seamless than before.

When Package Control starts the process of updating a theme, it first removes the existing sublime-package theme bundle, which results in a broken UI if the theme being upgraded is currently active. The UI remains broken for the time taken to download and reinstate the updated theme package. Once the new theme is fully downloaded and replaced in the "Installed Packages" directory, Sublime attempts to reactive the theme which may work seamlessly, or only partially.

This isn't really a bug or issue, but it is something different to the previous experience where theme files where overwritten in place and generally reapplied without much visual impact. There were occasions when this wasn't always smooth, such as when a lot of UI graphics have changed at once, so the previous approach isn't without its quirks.

I'm not sure what can be done about the UI theme upgrading experience, but thought it worth mentioning as it will likely be something that people notice when doing upgrades.

Jon or Will (Package Control) do you have any ideas on what could be done to minimise that impact? If there's anything I can do to adjust things on the theme side, please let me know.


That's it for now, hope you enjoy the theme.

Ian
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: Soda Theme - New features and ST3 support

Postby jps on Tue May 21, 2013 4:27 am

buymeasoda wrote:When using the "sublime-package" (zip) format in the "Installed Packages" directory (which is the default for Package Control), text fields for widgets and panels (eg. Find / Replace, Goto Anything, Command Panel etc), are not applying the widget colours correctly. They are instead rendered with the default theme colours.


This is a bug in S3, it'll be fixed in the next build.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Soda Theme - New features and ST3 support

Postby buymeasoda on Tue May 21, 2013 4:40 am

jps wrote:This is a bug in S3, it'll be fixed in the next build.


Nice one, thanks Jon
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: Soda Theme - New features and ST3 support

Postby nizur on Tue May 21, 2013 6:46 pm

I'm not seeing "Theme - Soda" when I use Package Control with ST3. Perhaps I've got Package Control looking in the wrong place?
nizur
 
Posts: 43
Joined: Thu Jan 12, 2012 11:40 pm

Re: Soda Theme - New features and ST3 support

Postby buymeasoda on Wed May 22, 2013 6:48 am

Not sure what the deal might be there.

Had you already added the theme manually to ST3, either by copying or cloning? It may then appear as already installed in Package Control: List Packages (which causes it to not show up as available in the other list).
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: Soda Theme - New features and ST3 support

Postby NikKlaus on Wed May 22, 2013 9:06 pm

Thanks a lot for updating to ST3.
NikKlaus
 
Posts: 3
Joined: Fri Dec 07, 2012 12:56 am

Re: Soda Theme - New features and ST3 support

Postby Stubblechunks on Fri May 24, 2013 3:40 am

I should have gotten around to installing this thing earlier.

Are there any known problems with customizing the theme under ST3? I've pasted test rules from the https://github.com/netatoo/phoenix-theme/wiki/Theme-customisation theme customisation page into a file under Packages --> User --> Soda Light 3.sublime-theme, and they have no apparent effect. (Also tried Soda.sublime-theme, and Soda Light.sublime-theme. None work.)
Stubblechunks
 
Posts: 24
Joined: Wed Apr 24, 2013 8:35 pm

Re: Soda Theme - New features and ST3 support

Postby nizur on Fri May 24, 2013 3:56 pm

buymeasoda wrote:Not sure what the deal might be there.

Had you already added the theme manually to ST3, either by copying or cloning? It may then appear as already installed in Package Control: List Packages (which causes it to not show up as available in the other list).


That must've been it! I've now got it installed. Thanks!
nizur
 
Posts: 43
Joined: Thu Jan 12, 2012 11:40 pm

Re: Soda Theme - New features and ST3 support

Postby buymeasoda on Mon May 27, 2013 12:30 am

Stubblechunks wrote:I should have gotten around to installing this thing earlier.

Are there any known problems with customizing the theme under ST3? I've pasted test rules from the https://github.com/netatoo/phoenix-theme/wiki/Theme-customisation theme customisation page into a file under Packages --> User --> Soda Light 3.sublime-theme, and they have no apparent effect. (Also tried Soda.sublime-theme, and Soda Light.sublime-theme. None work.)


I'd assume customisation should be working, but I haven't tested it myself. Your issue may be with the directory path and naming. My understanding is you'll need to mirror the directory name of the package to be overwritten inside the Packages directory.

For example, from the ST3 Docs on Packages: "To override a file in an existing package, just create a file with the same name under the Packages/<Package Name> directory."
http://www.sublimetext.com/docs/3/packages.html

Try something like:
Code: Select all
Packages/Theme - Soda/Soda Light 3.sublime-theme
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: Soda Theme - New features and ST3 support

Postby qgates on Mon May 27, 2013 1:15 am

Soda (Dark) is my daily driver. Love it - big thanks. I'll "buy you a soda" anytime :D
qgates
 
Posts: 205
Joined: Mon Nov 05, 2012 4:33 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: Feacur, Google [Bot] and 34 guests