Just a set of themes I decided to port and/or customize for the Netbeans IDE
-
Get the theme (zip archive) you want to install. You can do that in one of the following ways.
- Download it from the download page.
- Create the archive by yourself. In this case make sure you zip the 'config' folder within the main theme folder itself (e.g. NetBeans-Custom-Themes/Zenburned/config)
-
Open NetBeans and import the new theme by:
Tools => Options => Font & Colors => Import => Browse...
choose the zip archive (e.g. Zenburned.zip)OK
. Now select theAll
option (to import all the settings) and finallyOK
again. NetBeans will prompt a window asking you to restart the editor in order for the imported settings to be effective. Just confirm. -
Enjoy (if everything is ok) or complain (if something wrong happened) =)
This theme is the result of my tentative to port the theme "Tomorrow Night Eighties" (https://github.com/ChrisKempson/Tomorrow-Theme) to NetBeans. I soon realized, though that it would eventually evolve independently form the original theme and it maybe already did. :)
The theme is mainly oriented to support the syntax for PHP, (X)HTML, JavaScript and CSS.
I consider this theme still on a very preliminary stage because there is still much room form improvement.
PHP
This is just a port of the famous and great Zenburn theme (http://slinky.imukuppi.org/zenburnpage/).
For the colors palette I referred to this very useful page: http://wiki.steam-punk.net/zenburn.
I dedicated about one hour or so to create this theme from scratch (actually from the default theme which comes with NetBeans 7.1), and I mainly targeted the PHP syntax. This means that you will definitely find lots of inconsistencies! =)
Obviously any comment and input is welcome!
PHP
Diff
Unfortunately as of now NetBeans does not store the configuration of the colors for the diff in the same way and place
it does for the others.
As far as I know this configuration is stored in the file diff.properties
which can be found at the following sample location
~/.netbeans/7.1/config/Preferences/org/netbeans/modules/diff.properties
(7.1 being the version of NetBeans in my case on a GNU/Linux system).
Also note that the colors for the diff are global, meaning that they will be applied indipendently from the active theme you have.
The following procedure worked for me. I hope it will work for you too (let me know if it does not).
-
Back up the original file:
cd ~/.netbeans/<YOUR NB VERSION>/config/Preferences/org/netbeans/modules/
mv diff.properties diff.properties.bak
-
Replace the original file with the one provided with the theme (only for Zenburned for now):
cp /path/to/new/diff.properties ~/.netbeans/<YOUR NB VERSION>/config/Preferences/org/netbeans/modules/diff.properties
-
Try it!: the next diff you'll do should use the new colors. In any case restarting the IDE won't hurt.
Each one of these themes is provided "AS IS". Use them at your own risk, do whatever you want and be happy =)