Author Topic: Dark theme - contribution  (Read 78813 times)

georger_br

  • Guest
Dark theme - contribution
« on: June 27, 2013, 10:06:48 pm »
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

Offline golgepapaz

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: Dark theme - contribution
« Reply #1 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.

georger_br

  • Guest
Re: Dark theme - contribution
« Reply #2 on: June 28, 2013, 03:13:49 pm »
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

  • Guest
Re: Dark theme - contribution
« Reply #3 on: June 28, 2013, 04:17:00 pm »
I've attached a new, final (?) version with updated colours for comment lines, strings, and numbers.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Dark theme - contribution
« Reply #4 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?
(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

  • Guest
Re: Dark theme - contribution
« Reply #5 on: June 28, 2013, 04:46:48 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Dark theme - contribution
« Reply #6 on: June 28, 2013, 04:54:39 pm »
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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Dark theme - contribution
« Reply #7 on: June 28, 2013, 08:11:18 pm »
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

  • Guest
Re: Dark theme - contribution
« Reply #8 on: June 29, 2013, 05:10:52 am »
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Dark theme - contribution
« Reply #9 on: June 29, 2013, 06:34:31 am »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Dark theme - contribution
« Reply #10 on: June 29, 2013, 10:09:25 am »
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

  • Guest
Re: Dark theme - contribution
« Reply #11 on: July 01, 2013, 08:22:57 pm »
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

  • Guest
Re: Dark theme - contribution
« Reply #12 on: July 02, 2013, 07:57:22 pm »
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

  • Guest
Re: Dark theme - contribution
« Reply #13 on: July 03, 2013, 05:10:15 am »
Now all 11 colour themes at the wiki page have screenshots.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Dark theme - contribution
« Reply #14 on: July 03, 2013, 10:37:04 am »
thank you for the work!