Cobalt2 color scheme

181 views
Skip to first unread message

Greg Raven

unread,
Sep 30, 2020, 10:13:14 AM9/30/20
to BBEdit Talk
I just watched a coding video on YouTube where the presenter said he was using the Cobalt2 theme for VS Code. Maybe it's because I've been using the default BBEdit color scheme for almost 30 years, but it looked pretty good.

Does anyone have a similar Color Scheme for BBEdit?

I took a look at making my own CLM, but I'm not certain I could ever get to that level of hacktivism.

Watts Martin

unread,
Sep 30, 2020, 12:17:53 PM9/30/20
to 'MGatner' via BBEdit Talk
You could try some of the other included schemes and see what you think; I'm not usually a dark scheme person, but I like "Toothpaste" (it's reminiscent of Zenburn, one of the few dark color schemes I like for other editors when it's done right).

There are a few color schemes on the BBEdit Extras wiki, although they're mostly using the old, more limited schema from before BBEdit 11, and there's a good chance many of the links are broken. It'd be kind of neat to try and come up with a system for converting TextMate themes to BBEdit color schemes, but it might be a fairly significant undertaking, as their formats are very different.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/e33b839d-d3d1-4ca2-8584-6d85d0e65f84n%40googlegroups.com.

Greg Raven

unread,
Oct 1, 2020, 7:49:25 AM10/1/20
to BBEdit Talk
Good suggestion. I hadn't looked at the built-in themes for awhile. Toothpaste is close to Cobalt2, which gives me a good starting point for creating my own version. The biggest obstacle I'm facing now is that Visual Studio Code and BBEdit use different nomenclature to refer to various GUI elements, which makes it tough to transfer color specifications from one to the other easily.

Rick Yentzer

unread,
Oct 1, 2020, 9:25:34 AM10/1/20
to BBEdit Talk
I've converted a couple of themes over the years, but it's been a long time. I would be interested in porting some themes over though. I use One Dark in PyCharm quite a bit. I'm familiar with Cobalt 2 also. When I get some free time, I'll try to make one. I would like to see the Wiki updated with some current theme offerings. Perhaps I need to look into that as well. :)

Greg Raven

unread,
Oct 1, 2020, 9:44:06 AM10/1/20
to BBEdit Talk
If you think it will help, I'd be happy to share my Color Scheme file. Just let me know.

Rick Yentzer

unread,
Oct 2, 2020, 9:15:48 AM10/2/20
to BBEdit Talk
Here is a first pass at the cobalt2 theme. I didn't go through every setting as I don't use some of them day-to-day, but I hope this is a good start.
Cobalt2.bbColorScheme.zip

Greg Raven

unread,
Oct 2, 2020, 9:42:07 AM10/2/20
to BBEdit Talk
Wow, that's quick. Mine is a work in progress, too, but here it is.
Cobalt2 GR.bbColorScheme.zip

jj

unread,
Oct 2, 2020, 3:02:31 PM10/2/20
to BBEdit Talk
A few things I noticed with .bbColorSchemes:

1. The plist accepts different color specifications

You can use RGBA:
    
<key>BackgroundColor</key>
<string>rgba(0.979995,0.979995,0.979995,1.0)</string>

or HSLA:

<key>InsertionPointLineHighlightColor</key>
<string>hsla(0.760, 0.310, 1.000, 1.000)</string>


or web colors #RRGGBB:

<key>InvisibleSpacesColor</key>
<string>#F08080</string>
and maybe some more. 

Apparently you can use any combination of the above in the .bbColorScheme plist and BBEdit will recognize the color.

2. If you edit a color in BBEdit's color picker, the color will be saved in HSLA in the .bbColorScheme.
So if you pick a RGBA color and BBEdit saves it in HSLA, some conversion must occur that might explain the difference of colors between the chosen color and the displayed color. It could be float truncation or color space conversion depending on which color profile is in use.

3. This interesting video shows some little known features of the color picker, notably the presence of the color profiles and some more.

    
    
HTH,

Jean Jourdain
Reply all
Reply to author
Forward
0 new messages