Marc Fearby's Home Page

Desert Colour Scheme for NetBeans

Eyeball a white screen whilst programming for too long and your eyes are going to hurt, so a sympathetic colour scheme is essential. My favourite scheme, or at least the one I became used to when I used gedit a fair bit, is called Desert (no longer available, so here’s my copy), which is based on the Desert scheme for vim. Lately I’ve been using Geany to take advantage of a few more features, so here are of the relevant files from my “~/.config/geany/filedefs” directory which I modified to implement the same colours.

However, this Christmas I intend to read Programming Clojure, a book I bought just over a year ago! And since I haven’t been able to cope with emacs or vim, I was forced to once and for all put in the time to implement the Desert colour scheme in NetBeans. The process was quite laborious, so hopefully this will be useful to those who find the default offerings a little meagre.

Here’s a sample of the colour scheme, showing defpackage.clj from the clojure examples in the book. I have also configured these same colours for other file formats I use often, such as PHP, HTML, JS, CSS, SQL, and knocked up the others as best I could in the time available. NetBeans sure doesn’t make this easy, but you gets what you pays for :-)

(picture: preview showing desert colour scheme

Download: Desert Colour Scheme for NetBeans 59.3 KB (created with 6.9.1)

To install, open NetBeans, go to Tools > Options, then click on Fonts & Colors, then click the Import button at the bottom and browse to the file downloaded above. Enjoy!

15 Responses to “Desert Colour Scheme for NetBeans”

  1. Very nice indeed. Hard to find good NetBeans color themes.
    I appreciate the time you spent doing this.

    Posted by DC on 13-Apr-2011 at 11:13 pm

  2. Awesome, I have had to switch back to netbeans from vim, just what I needed, thanks for this!

    Posted by John on 22-Apr-2011 at 6:56 am

  3. Great job. However, it’s really annoying not to be able to see the current cursor position.

    Posted by initialzero on 31-Aug-2011 at 3:51 am

  4. Thank for this theme! By the way, it works for Netbeans 7.1 too

    Posted by vann3ll on 22-Nov-2011 at 9:15 am

  5. Thanks for this.. Works great in NB 7.1..

    Posted by mrmisto on 11-Jan-2012 at 9:56 am

  6. Great one. Just changed background to black instead of grey. Also changed caret color because cursor was not showing :) Thanks a lot

    Posted by JBFD on 27-Jan-2012 at 1:18 pm

  7. I am getting a red vertical line through the code screen. Is this normal?

    Posted by diek on 9-Mar-2012 at 3:43 pm

  8. The problem is the right margin line.

    Posted by diek on 12-Mar-2012 at 10:02 am

  9. Thnx, right margin line set to 0

    Posted by sinzoo on 19-Apr-2012 at 8:14 pm

  10. Thanks man!!! words gr8!!!

    Posted by hemant jain on 10-May-2012 at 8:28 pm

  11. It’s been a while since I used Netbeans (not having needed to do any dev at home) but I installed 7.1.2 tonight and noticed that the cursor was not visible. I had to go into the Highlighting tab for this colour scheme’s options and set the Caret Color to white, not Inherited (which was white anyway) but I had to specifically choose White for some reason. Problem sorted.

    Posted by Marc on 23-May-2012 at 11:03 pm

  12. Thanks for the theme! I love it! Good choice of colors. And thanks for the hint about the caret color. I set the color to light grey. I think white is too bright.

    Posted by Allan on 28-May-2012 at 6:57 am

  13. Thanks from me too! Also had to change the cursor color, but the theme its great.

    Posted by caente on 24-Aug-2012 at 6:20 am

  14. Thank you , this is the best dark theme for netbeans I’ve used so far (great fonts too) .

    Posted by kez on 27-Aug-2012 at 8:57 pm

  15. I’m now learning Objective-C, having failed miserably (well, not tried very hard, actually) to learn Clojure, so I’ve found a colour scheme for Xcode that is very close to Desert:

    Posted by Marc on 18-Dec-2012 at 9:43 pm