Hi Everyone
How do you go about creating your themes?
Do you start from another theme? with a clean slate? Do you do it editing a plist file or just use the built-in editor? How do you preview your results, what source code you find best to use?
I'm looking to craft a theme or two and would like to know how the others are doing it.
At the end of the theme chooser, there's a "Edit theme list" (in beta 16 or something and ahead I think). From there you can either copy another theme, or you can add a new one. The new one will have some scopes already defined, but without any colour or such. Then, you just go through the scopes and and set them, from within the preference window. This will have immediate effect on the file you view at the moment. You can also at any time hit shift+control+p in your syntax file to see what scopes a certain item has, then just add those scopes in the theme editor and colour them up! Good enough? Be sure to send in your results, themes seem to be the latest buzz now :)
Andreas
On Sep 14, 2005, at 4:15 , Caio Chassot wrote:
Hi Everyone
How do you go about creating your themes?
Do you start from another theme? with a clean slate? Do you do it editing a plist file or just use the built-in editor? How do you preview your results, what source code you find best to use?
I'm looking to craft a theme or two and would like to know how the others are doing it.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Sep 14, 2005, at 2:54 AM, Andreas Wahlin wrote:
You can also at any time hit shift+control+p in your syntax file to see what scopes a certain item has, then just add those scopes in the theme editor and colour them up!
Hrm, this isn't working for me. Is this file in a bundle that I've turned off, perhaps? Where is this command located?
It's in Automation -> Run command -> Language definition -> Show scope To tell you the truth, I'm sometimes having difficulty with this as well, sometimes it works, sometimes not. It seems to break after I've tried to edit a bundle (the HTML language definition to be specific). Anyone else notice this?
Andreas
On Sep 14, 2005, at 15:36 , Gavin Kistner wrote:
On Sep 14, 2005, at 2:54 AM, Andreas Wahlin wrote:
You can also at any time hit shift+control+p in your syntax file to see what scopes a certain item has, then just add those scopes in the theme editor and colour them up!
Hrm, this isn't working for me. Is this file in a bundle that I've turned off, perhaps? Where is this command located?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Sep 14, 2005, at 05:54, Andreas Wahlin wrote:
At the end of the theme chooser, there's a "Edit theme list" ,,, Good enough?
Well, thanks, I was aware of some of the options, but you did show me a few other possibilities.
I was more specifically wondering about each theme author methodology and preferences, how they put the tools available to use.
On Sep 14, 2005, at 3:14 PM, Caio Chassot wrote:
I was more specifically wondering about each theme author methodology and preferences, how they put the tools available to use.
Thomas Aylott's theme creating process.
0) Define your palette. Decide what colors you're going to use & never deviate from them (unless you didn't think it thru throughly first).
1) Open a big file. It should contain most of the different elements that you're going to want to customize. (comments, html, css, js, ruby, erb, etc...) I usually open up a bunch and switch around between them white designing the theme.
2) Make a blank theme.
3) Select something in your code that you want to customize & get it's scope. I use a custom command "echo $TM_SCOPE" show in new window. So that I can copy & paste the scope.
4) Make a new entry in the scope editor.
5) Repeat.
BEWARE: The theme is only saved when you close the prefs window. If you do something crazy that makes it crash
I usually start out with the basic html stuff.
On 14/09/2005, at 21.14, Caio Chassot wrote:
I was more specifically wondering about each theme author methodology and preferences, how they put the tools available to use.
A few tips about color (pickers):
• the developer tools has Pixie (under Graphics Tools), it's a lens, and you can lock the view (cmd-L) and drag colors out from a locked view (onto a color picker or color wedge)
• when you have a color picker open, you can drag any of the color wedges onto it, to copy the color from the dragged wedge
• the color pickers have a user palette in the bottom to where you can drag colors, so e.g. for my Amiga theme, I started by dragging the colors I needed (from Pixie) to that row, and could then just select for the misc. items
• when dragging a color from another application (e.g. Pixie) and TM is not active (thus the color picker is hidden) you can cmd- tab to activate TM, while holding down the mouse (to hold on to the color you are dragging)
• the user palette in the bottom of the color picker is global, so you don't have to set up the colors you want to use in TM
On 14-09-2005 21:14, Caio Chassot wrote:
I was more specifically wondering about each theme author methodology and preferences, how they put the tools available to use.
I made the iPlastic theme thinking about some good experiences I had with SEE, Eclipse, Vim and some other general things that work on a (close to) white background and I just expanded the theme from there..
It's okay now I think as a general purpose theme, although I'm not completely happy with how HTML is marked up, but might change that in the future.
How I tested it, at the time there was also some change in scopenames, etc. so I only tested it with the Python syntax, since I knew that was correct and only briefly tested it with HTML/XML. And for other languages it should just work if you get those right I guess.
Jeroen.