News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Dark theme - contribution

Started by georger_br, June 27, 2013, 10:06:48 PM

Previous topic - Next topic

georger_br

I really like C::B and have always wanted it to have a nice dark theme, so I pieced one together from Monokai (Sublime Text 2, Eclipse) and Resesif (Xcode). I really like the end result. I use it along with these settings:
1) General Settings/Editor settings/Font is Consolas 12;
2) General Settings/Editor settings/Other options/Highlight line under caret is enabled;
3) Margins and caret/Caret/Style is Line, Width is 3, and Colour is red (255 0 0).

Those interested may import this with CB Share Config (rename from .txt to .conf). It goes without saying that you should first back up your current configuration file!

Georger

golgepapaz

Looks very good. I had my own monokai theme but I've overwrote it after
installing another theme from here so the OPs advice about backing it up is
sound.

Here is a comparison between SublimeText's monokai theme and
this one. Scintilla's lexer seems indeed limited.

That light blue (or is it teal? I am colour blind.  :) ) colour for keywords
seem better suited but that's up to one's own taste I guess.

georger_br

Quote from: golgepapaz on June 28, 2013, 01:23:19 AM
Looks very good. I had my own monokai theme but I've overwrote it after
installing another theme from here so the OPs advice about backing it up is
sound.

Here is a comparison between SublimeText's monokai theme and
this one. Scintilla's lexer seems indeed limited.

That light blue (or is it teal? I am colour blind.  :) ) colour for keywords
seem better suited but that's up to one's own taste I guess.
Hi,
I just changed the keywords to blue, and I think it looks better now. I have attached the updated color theme. To those that have already downloaded, here goes the changelog:

1) Keyword
From 249 38 114
to 38 249 173

2) User keyword
From 166 226 46
to 249 38 114

3) Preprocessor
From 166 226 46
to 249 38 114

4) Operator
From 38 249 173
to 166 226 46

I don't think Scintilla's lexer is limited, rather it seems that ST2's lexer is really sophisticated - it can parse variable and function names, constants, classes, and a number of other tokens.

Enjoy!

georger_br

I've attached a new, final (?) version with updated colours for comment lines, strings, and numbers.

oBFusCATed

georger_br: Can you start a page on the wiki with your theme, so we can start collecting users supplied themes and to store them in a single place?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

georger_br

Quote from: oBFusCATed on June 28, 2013, 04:20:02 PM
georger_br: Can you start a page on the wiki with your theme, so we can start collecting users supplied themes and to store them in a single place?
Hi oBFusCATed,
Sure. Problem is, upon trying to log in with my username and password (same as the forum), I get the following error:

"Login error
You have not specified a valid user name."

Could it be the underscore?

oBFusCATed

Don't know... Probably Morten and Jens could answer this question.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

If I remember correctly the underscore is in fact the problem.
As far as I know you can not change the login-name yourself (just the shown username), it can be done by an admin, but would reset your passord and generate a new one, which will be sent to your mail-address, so it must be valid.
So changing the name might not work without the "help" of an admin.

If you want me to do that, please post it here or sent me a pm with the new name.

georger

It's on the wiki.
As the wiki does not allow uploading files with the .conf extension (neither does the forum, but it will accept a .txt), I'll upload the colour theme file here and point the wiki back to this thread so that registered forum users may download it.

To those coming from the wiki: log in to the forum, download the .txt file attached to this reply, change its extension to .conf and you'll be able to import it into Code::Blocks with CB Share Config.

Jenna

Unfortunately the attachements get deleted from time to time, so the theme will be lost.
If there is no other way to store it in the wiki or on pastebin or something like that, I can upload it to my server and post the download link here.

oBFusCATed

We need some kind of system, where users can upload themes
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

georger

Quote from: oBFusCATed on June 29, 2013, 10:09:25 AM
We need some kind of system, where users can upload themes
For the time being, I pasted the theme right into the wiki page.

georger

Quote from: georger on July 01, 2013, 08:22:57 PM
Quote from: oBFusCATed on June 29, 2013, 10:09:25 AM
We need some kind of system, where users can upload themes
For the time being, I pasted the theme right into the wiki page.
Now the config file at the wiki page has the following colour themes:
- Bright Yellow (by hongwenjun)
- Dark Gray (by hongwenjun)
- Idel (by hongwenjun)
- Modnokai (my modified version of Wimer Hazenberg's Monokai)
- Oblivion (by hongwenjun)
- Solarized Dark (by Ethan Schoonover)
- Solarized Light (by Ethan Schoonover)
- Son of Obsidian (by Eric Millin)
- Sublime (by hongwenjun)
- Vim (by hongwenjun)

Only Modnokai has a screenshot.

georger

Now all 11 colour themes at the wiki page have screenshots.

BlueHazzard