Home Download Buy Blog Forum Support

ST2 visual theme editor and more

Re: ST2 visual theme editor and more

Postby handycam on Wed Feb 29, 2012 12:38 am

Is this a THEME editor or a SCHEME editor?
Mac OS 10.9.3
ST 3 (3059)
handycam
 
Posts: 271
Joined: Tue Jan 03, 2012 2:42 pm

Re: ST2 visual theme editor and more

Postby sublimator on Wed Feb 29, 2012 1:47 am

if you wanna get all technical .... it's a scheme editor yes ...
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ST2 visual theme editor and more

Postby handycam on Wed Feb 29, 2012 1:53 am

castles_made_of_sand wrote:if you wanna get all technical .... it's a scheme editor yes ...


Thanks. Would be cool! Currently I use Textmate's preference dialog as a scheme editor.
Mac OS 10.9.3
ST 3 (3059)
handycam
 
Posts: 271
Joined: Tue Jan 03, 2012 2:42 pm

Re: ST2 visual theme editor and more

Postby corelon on Tue Mar 06, 2012 1:21 pm

@dmorrill: Is is possible to get a copy of Facets? I am a python developer and it would really interest me. I tried PMing but the messages are still in my outbox.

Regards,

Nikos Tzanos
corelon
 
Posts: 41
Joined: Mon Feb 16, 2009 2:16 pm

Re: ST2 visual theme editor and more

Postby sublimator on Tue Mar 06, 2012 1:28 pm

http://dmorrill.com/facets/users_guide/

Hope he doesn't slay me for linking it
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ST2 visual theme editor and more

Postby corelon on Tue Mar 06, 2012 1:40 pm

Thanks a lot. I hope he doesn't :)

By the way why do my PM stay in the Outbox? Am I doing something wrong?
corelon
 
Posts: 41
Joined: Mon Feb 16, 2009 2:16 pm

Re: ST2 visual theme editor and more

Postby fbdegroot on Wed May 09, 2012 9:15 am

This looks very promising and i would love to give it a try (even though its still in alpha).

Great job!
fbdegroot
 
Posts: 1
Joined: Wed May 09, 2012 9:12 am

Re: ST2 visual theme editor and more

Postby Grant on Wed May 09, 2012 11:45 am

I call shenanigans. Or vapor-ware.
When might we expect to see this visual theme editing plugin released into the wild?
Grant
 
Posts: 68
Joined: Fri Jan 20, 2012 2:42 pm

Re: ST2 visual theme editor and more

Postby ntenney on Fri May 18, 2012 6:08 pm

castles_made_of_sand wrote:http://dmorrill.com/facets/users_guide/

Hope he doesn't slay me for linking it


I think you should be OK. I found it Via Google (David Morrill facets, second result).
ntenney
 
Posts: 65
Joined: Thu May 03, 2012 9:10 pm

Re: ST2 visual theme editor and more

Postby PIAOYIDIAN on Fri May 25, 2012 5:31 am

dmorrill wrote:Hello, I'm a total ST2 noob, having just "discovered" it last week. I took it for a test drive and ended up purchasing my license the next day.

I tried downloading a few TextMate themes, but didn't find any that really suited me. After taking a look at the contents of some of the .tmTheme files (gack!), I thought it might be interesting to try and create a visual TextMate/ST2 theme editor. Since RAD building of GUI tools is basically what I do for a living, I spent a few hours at my local Starbucks and quickly had a first pass at a TextMate theme editor GUI up and running.

The next part was how to integrate it into ST2. I tried a few different approaches over the last few days with varying levels of success. And then last night I had a Eureka moment when suddenly everything just snapped into place. I've attached a screen shot in case anyone is interested.

st2_theme_editor_2_50.jpg

The theme editor on the right is showing a popup color picker that appeared after I clicked on the Comments/Foreground cell. After I select a new color using the picker, the ST2 editor window on the left immediately updates to show the effect of the theme change on the file text. BTW, the color picker remains on screen until I mouse away from it, making it easy to rapidly try different colors or tints.

The thing that actually has me the most excited however is that the technique is very general. I've attached another screen shot showing a VIP Shell window I launched from ST2 (a VIP Shell is basically a Python console on steroids).

st2_vip_shell_50.jpg

As you can see, the shell window is showing some live data about the current state of the ST2 editor. In this case, the only thing I had to add was a new Command:

Code: Select all
import sublime_plugin

class VipShellCommand ( sublime_plugin.WindowCommand ):

    def run ( self ):

        from facets.extra.tools.vip_shell import VIPShell

        VIPShell().edit_facets()


and a key binding:

Code: Select all
{ "keys": ["ctrl+f12"], "command": "vip_shell", "args": {} }


Since I had never heard of ST2 before last week, this is still a very early WIP, but I just thought I'd drop by to see if there might be any community interest in this work. Also, sorry for the large images. I tried scaling them down to fit, but the text ended up being illegible, so I left them at 100%...


Great, smart and really good so you can achieve your modified theme.
PIAOYIDIAN
 
Posts: 39
Joined: Sun Dec 25, 2011 5:19 am

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: BestGreek, Yahoo [Bot] and 5 guests