2011
15
Jan
Eclipse PDT – Creating a dark theme the easy way

I spend quite an awfully long time coding using Eclipse PDT and hate staring at the white IDE screen.
It hurts my eyes to keep looking at the white screen and thus my journey started to find a suitable dark theme.
Having not been able to find one that didn’t crash my Eclipse set-up, I went ahead and created my own dark theme.
Here is a sneak preview :

To get the same effect do the following steps :
-
Go to Window > Preferences > General > Editors > Text Editors
Set the following values- Line number foreground : #C0C0C0
- Current line highlight : #273A4B
- Print margin : #C0C0C0
- Find scope : #BCADAD
- Selection foreground color : #000000
- Selection background color : #898941
- Background color : #112435
- Foreground color : #FFFFFF
- Hyperlink : System Default
-
Go to Window > Preferences > PHP > Editor > Syntax Coloring
Set the following valuesSyntax Element Enabled Foreground Background Extras Classes x NA NA NA Constants x NA NA NA Deprecated members ✓ #000000 #FFFFFF Strikethrough Fields ✓ #C7DD0C #FFFFFF NA Functions x NA NA NA Heredoc ✓ #D1DEBF #112435 NA Internal classes x NA NA NA Internal constants x NA NA NA Internal functions x NA NA NA Keywords ✓ #E6A82D #112435 NA Methods x NA NA NA Multi-line comment ✓ #3A8BDA #112435 NA Normal ✓ #FFFFFF #112435 NA Number ✓ #7BD827 #112435 Bold Parameter variables x NA NA NA PHP tags ✓ #FF8B09 #112435 NA PHPDoc ✓ #C7DD0C #112435 Bold PHPDoc comment ✓ #3A8BDA #112435 NA Single-line comment ✓ #3A8BDA #112435 NA Static fields ✓ #0000C0 #112435 Italic Static methods ✓ #F5428A #112435 Italic String ✓ #FFFF80 #112435 NA Superglobal variables x NA NA NA Task Tag ✓ #7CA5D5 #112435 Bold Variable ✓ #8DB0D3 #112435 NA
Now go ahead and enjoy your dark theme and give your eyes some relief.
Happy coding
Hi, I am Subhasree and I want to know how to do this.
Hi Subhasree,
Can you please elaborate as to what exactly you want to know ?
Thanks for sharing.
Hex to RGB converter was helpful when setting colors:
http://www.yellowpipe.com/yis/tools/hex-to-rgb/color-converter.php
Hi Furgas,
Glad that you found the information useful.