Home Download Buy Blog Forum Support

Soda Theme - New Sublime Text 2 UI theme

Re: Soda Theme - New Sublime Text 2 UI theme

Postby iamntz on Thu Sep 01, 2011 7:59 am

Please excuse an utter newbie to themeing in ST2 - how exactly do you install themes? There seems to be a dearth of information about it online. Thanks.

You can use package control
iamntz
 
Posts: 918
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Soda Theme - New Sublime Text 2 UI theme

Postby barty on Mon Sep 19, 2011 6:18 pm

Thanks for this excellent theme.

Do you know how to make the tab label and file tree label font larger? I looked everywhere. The old eyes are going...
barty
 
Posts: 47
Joined: Thu Sep 10, 2009 5:39 am

Re: Soda Theme - New Sublime Text 2 UI theme

Postby Kronuz on Wed Sep 28, 2011 6:50 pm

Hey, could you please add support for the "dirty" tabs glowing? (Global setting: highlight_modified_tabs) :D
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: Soda Theme - New Sublime Text 2 UI theme

Postby DSHugo on Fri Sep 30, 2011 9:39 pm

Kronuz wrote:Hey, could you please add support for the "dirty" tabs glowing? (Global setting: highlight_modified_tabs) :D

Indeed, that would be great -- at least when there are lots of tabs, and the usual `dot` indicator gets invisible.
DSHugo
 
Posts: 42
Joined: Tue Sep 20, 2011 11:05 am

Re: Soda Theme - New Sublime Text 2 UI theme

Postby buymeasoda on Fri Oct 21, 2011 4:22 am

Howdy Jon,

I was wondering if there's a way I can theme a couple of the remaining UI components that appear to have hard references to assets in the Default Theme folder?

The outstanding items I've tried (but failed) to customise are:

  • Gutter: Bookmark icon
  • Gutter: Mark icon
  • Editor: Folded code [...] indicator

If I add them to my themes folder they don''t seem to get picked up, but if I edit the source images in the Default Theme folder they work from there.

I've noticed that some of the other UI plugins have managed to customise the gutter icons, if anyone knows the rules I'd be keen to know.

Image

There's also some other details of visual rendering anomalies on the github wiki page: https://github.com/buymeasoda/soda-them ... -and-ideas

Kronuz wrote:Hey, could you please add support for the "dirty" tabs glowing? (Global setting: highlight_modified_tabs) :D


I'm keen on getting something in as well, I've got some ideas but playing around with execution at the moment.

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

Re: Soda Theme - New Sublime Text 2 UI theme

Postby buymeasoda on Sat Oct 22, 2011 1:15 pm

I've added my initial take on the "unsaved changes indicator" to Soda Theme.

When a file is edited, the close button dynamically changes to a circle icon to show unsaved changes (or for users with close buttons disabled, the circle will simply appear).

One thing that arose from this implementation is that it makes the existing text based label dot redundant, and I'd really like to disable it via the theme.

Is there option or setting for themes to be able to disable the default text based dot that renders at the end of a tab labels name?

It would be nice to be able to turn this off to avoid the double dot effect (see below), and it would have the added benefit (for themes that don't need it), of not causing tab widths to be pushed out due to the text dot rendering.

Here's some details on that request, and a look at the unsaved changes indicator of Soda Light:

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

Re: Soda Theme - New Sublime Text 2 UI theme

Postby facelessuser on Sat Oct 22, 2011 3:40 pm

buymeasoda wrote:I've added my initial take on the "unsaved changes indicator" to Soda Theme.


I do like the look of this approach but it seems to suffer from the same issue as the original dot method. When I have too many tabs open, I cannot see your dirty indicator. At least with the orange glow, I could always see it. Though I do like the look, functionality is always very important to me.

Is there a way to force the close icons to always be shown that I am just not aware of? If not, it would be nice if you could implement a dirty indicator that doesn't disappear when a lot of tabs are open.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: Soda Theme - New Sublime Text 2 UI theme

Postby buymeasoda on Sat Oct 22, 2011 10:56 pm

facelessuser wrote:When I have too many tabs open, I cannot see your dirty indicator.


Yeah, that is something that would be nice to find a way to fix.

There seems to be some logic in place (that may be configurable by a theme, or perhaps is hard coded in the app), that auto-hides the close button at a calculated minimum width. If anyone knows how to adjust this, let me know and I'll try some adjustments to keep it there at much smaller sizes.

At the moment on a 1280 wide resolution with an average sized sidebar, it'll fit about 21 tabs with a visible indicator, regardless of the length of the tab label file names. With wider resolutions, or no sidebar showing that number increases, but yeah, I end up with lots of files open too and would like to resolve that.

Jon, are there any parameters that can set what the trigger width is for auto-hiding the close button?

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

Re: Soda Theme - New Sublime Text 2 UI theme

Postby fkirkholt on Sun Oct 23, 2011 7:53 am

Changing the close button for dirty files should also be done for Open files in the side bar, as I suggested here:

viewtopic.php?f=2&t=2362&p=11106#p11106

Preferably it should also be done for dirty files in the Folders section in the side bar, since one might hide both tabs and Open files and just show the project folder.
fkirkholt
 
Posts: 6
Joined: Thu Jul 14, 2011 8:35 am

Re: Soda Theme - New Sublime Text 2 UI theme

Postby buymeasoda on Tue Oct 25, 2011 4:49 am

fkirkholt wrote:Changing the close button for dirty files should also be done for Open files in the side bar


Completely agree. I would also like to see this.

At the moment, based on my interpretation of how Jon has implemented the "dirty" state trigger, it appears to be a property of the tab_control, rather than something more abstract, like the file itself.

When determining whether or not to trigger the dirty file icon in place of the close button, the theme does more or less the following check: "For this close button, if the parent tab element's dirty attribute is true, display the dirty file icon"

The actual theme rules are:

Code: Select all
// Tab dirty button
{
    "class": "tab_close_button",
    "settings": ["highlight_modified_tabs"],
    "parents": [{"class": "tab_control", "attributes": ["dirty"]}],
    "content_margin": [8, 8],
    "layer0.texture": "Theme - Soda/Soda Light/tab-dirty.png",
    "layer0.opacity": 1.0,
    "layer1.opacity": 0.0
},


You can see the check there with: "parents": [{"class": "tab_control", "attributes": ["dirty"]}],

I'm not aware at the moment of a way to leverage that for the sidebar tree without Jon adding some other form of indicator for determining if a file is clean / dirty.

I'd certainly use it, if there's a trigger available or one was added.
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 20 guests