In the beginning God created the baryonic universe.

Dark Eclipse Theme

Eclipse is a great framework with many neat plugins. It even has plugins to change editor color theme. Still, the plugins I have seen only change the theme of the editor but not the framework itself and staring at a bright screen 8+ hours a day does hurt my eyes. I searched the web and found DeLorean-Dark-Eclipse-Theme_1. Though the plugin does not work on my MAC, the approach tells me how to make it so on both my Mac notebook and Windows desktop.

First, cd to the root of eclipse, then cd to where the css files are

cd plugins/org.eclipse.platform_4.2.1.v201209141800/css

The version number of the platform plugin changes with eclipse version and yours might be different. On mine, the directory contains the following files

e4_basestyle.css, e4_default_gtk.css, e4_default_winxp_blu.css, e4_classic_win7.css, e4_default_mac.css, e4_default_winxp_olv.css, e4_classic_winxp.css, e4_default_mru_on_win7.css, e4_default.css, e4_default_win7.css

Since my notebook is a MAC, I backed up the file e4_default_mac.css. Then, copied much from DeLorean-Dark-Eclipse-Theme_1, I changed the content of e4_default_mac.css to

.MTrimmedWindow {  
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 2px;
    margin-right: 2px;
    background-color:  #003333; Black;
    color: Yellowgreen;
}

.MPlaceholder {
    //Overridden by swt-unselected-tabs-color
    background-color: Black;
    color: #dbdbdb;a
}

.MPartStack {
  swt-tab-renderer: null;
    swt-simple: false;
    swt-mru-visible: false;
    swt-unselected-tabs-color: Navy black grey 100% 100%;
    swt-selected-tabs-color: #303030; #303030; #303030; 100% 100%;
    swt-outer-keyline-color: #343434;
    swt-inner-keyline-color: #181818;
    swt-mru-visible: false;
    swt-shadow-visible: false;
    swt-tab-outline: #181818;
    color: PaleGreen;
}

CTabFolder Tree {
    background-color: #121212;
    color: #ddddff;

}

.MPartStack.active {
  swt-selected-tabs-background: Green Black 100%;
  swt-unselected-tabs-color:  black Blue grey 100% 100%;
  swt-outer-keyline-color: #0d6293;
  swt-inner-keyline-color: #1d1d1d;
  swt-shadow-visible: false;
  swt-tab-outline: blue;
  color: yellow;
}

#PerspectiveSwitcher  {
    background-color:  Black White White Black 100%;
    eclipse-perspective-keyline-color: Green Grey;
    color: White;
}

.MToolControl.TrimStack {
    frame-image:  url(./winClassicTSFrame.png);
    handle-image:  url(./winClassicHandle.png);
    frame-cuts: 5px 1px 5px 16px;
    background-color: red;
}

.MToolBar.Draggable {
    handle-image:  url(./dragHandle.png);
}

.MToolControl.Draggable {
    handle-image:  url(./dragHandle.png);
}

CTabFolder {
    swt-unselected-tabs-color: #303030;
    swt-outer-keyline-color: #383838;
    swt-inner-keyline-color: #383838;
    swt-tab-outline: #323232;
    selected-tab-fill: #181818;
    hover-tab-fill: #181818;
    prelight-tab-fill: #181818;
    swt-shadow-visible: false;
    color: red;
}

CTabFolder.MArea .MPartStack, CTabFolder.MArea .MPartStack.active {
   swt-shadow-visible: false;
        background-color: saddlebrown;
        color: Blue;
}

CTabFolder Canvas {
    background-color: #232323;
    color: #ffdddd;
}

MTrimBar CLabel {
    background-color:  black;
    color:  pink;
}

.MTrimBar#org-eclipse-ui-main-toolbar {
        background-color:  black brown 100%;
        color: white;
}

.MToolControl CLabel {
    background-color:  black;
    color:  indianred;
}

#org-eclipse-jdt-ui-PackageExplorer {
    background-color: black;
    color: violet;
}

CTabItem:selected {
    background-color: #121212;
    color: White;
}

.MPart Composite,.MPart#org-eclipse-ui-console-ConsoleView {
        background-color: black;
    color: #cbcbcb;
}

Then I restarted eclipse and saw a nice dark eclipse.

On my windows desktop, I replaced the content of e4_default_win7.css file with the following:

.MTrimmedWindow {  
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 2px;
    margin-right: 2px;
    background-color:  #003333; Black;
    color: Yellowgreen;
}
.MPlaceholder {
    /*Overridden by swt-unselected-tabs-color
    background-color: Black; */
    color: Blue;
}
.MPartStack {
  swt-tab-renderer: null;
    swt-simple: false;
    swt-mru-visible: false;
    swt-unselected-tabs-color: Navy black grey 100% 100%;
    swt-selected-tabs-color: Red White Blue 100% 100%;
    swt-outer-keyline-color: #343434;
    swt-inner-keyline-color: #181818;
    swt-mru-visible: false;
    swt-shadow-visible: false;
    swt-tab-outline: #181818;
    color: PaleGreen;
}

CTabFolder {
    swt-unselected-tabs-color: #303030;
    swt-outer-keyline-color: #383838;
    swt-inner-keyline-color: #383838;
    swt-tab-outline: #323232;
    selected-tab-fill: #181818;
    hover-tab-fill: #181818;
    prelight-tab-fill: #181818;
    swt-shadow-visible: false;
    color: Lime;
}

CTabFolder Tree {
    background-color: Black;
    color: White;
}

.MPartStack.active {
  swt-selected-tabs-background: Green Black 100%;
  swt-unselected-tabs-color:  Black Blue grey 100% 100%;
  swt-outer-keyline-color: #0d6293;
  swt-inner-keyline-color: #1d1d1d;
  swt-shadow-visible: false;
  swt-tab-outline: blue;
  color: Green;
}

.MTrimBar {
    background-color: Black; 
}

.MTrimBar#org-eclipse-ui-main-toolbar {
    background-image:  url(./win7.png); 
}

.MToolControl.TrimStack {
    frame-image:  url(./win7TSFrame.png);
    handle-image:  url(./win7Handle.png);
}

#PerspectiveSwitcher  {
    background-color:  Black White White Black 100%;
    eclipse-perspective-keyline-color: Green Grey;
    color: White;
}

#org-eclipse-ui-editorss {
   swt-tab-renderer: url('bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
   swt-unselected-tabs-color: #F0F0F0 #F0F0F0 #F0F0F0 100% 100%;
   swt-outer-keyline-color: #B4B4B4;
   swt-inner-keyline-color: #F0F0F0;
   swt-tab-outline: #F0F0F0;
   color: #F0F0F0;
   swt-tab-height: 8px;
   padding: 0px 5px 7px;
}

CTabFolder.MArea .MPartStack, CTabFolder.MArea .MPartStack.active {
   swt-shadow-visible: false;
   background-color: saddlebrown;
   color: Blue;   
}

CTabFolder Canvas {
    background-color: #232323;
    color: #ffdddd;
}

MTrimBar CLabel {
    background-color:  black;
    color:  pink;
}

.MTrimBar#org-eclipse-ui-main-toolbar {
        background-color:  black brown 100%;
        color: white;
}

.MToolControl CLabel {
    background-color:  black;
    color:  indianred;
}

#org-eclipse-jdt-ui-PackageExplorer {
    background-color: black;
    color: violet;
}

CTabItem:selected {
    background-color: #121212;
    color: White;
}

.MPart Composite,.MPart#org-eclipse-ui-console-ConsoleView {
    background-color: black;
    color: #cbcbcb;
}

After I restart eclipse, it came up with a nice dark theme, which is much easier on my eyes.

As I use eclipse with the improvised themes, I see things that can be improved and I hope this note will help someone to get started and take the next step to enhance on how eclipse can look like, darkly.

Note: The new themes only change eclipse framework look. I use Aptana's built-in themes to select my favorite syntax coloring styles. The last step after customizing after picking an editor theme can be done by right clicking on the editor and select 'Preferences'

CreationWord.org
Reach for the Calling Creator

Computer Notes

CSS Color Names

CakePhp and SQLite

SQL Injection Scanner

Squish by Froglogic

Android Notes

Tools on Windows OS

Text to Speech Software

jEdit Plugins

Split File by jEdit Macro

Dark Eclipse theme

Eclipse Plugin Basics

FTP with Eclipse

Markdown with Eclipse

ON THE BOOK SHELF

Knowledge of the Holy - A.W. Tozer

The Pursuit of God - A.W. Tozer

The Dwelling Place - A.W. Tozer

Plumber of Lisburn - A.W. Tozer

Spiritual Power Vows - A.W. Tozer

Root of the Righteous - A.W. Tozer

Essays - A.W. Tozer

Fourfold Gospel - A.B. Simpson

Gospel of Healing - A.B. Simpson

Life of A.B. Simpson - C&MA

Mark Gospel 1/4 - A MacLaren

Mark Gospel 2/4 - A MacLaren

Mark Gospel 3/4 - A MacLaren

Mark Gospel 4/4 - A MacLaren

Gospel of St. John - F.D. Maurice

To the Romans - R.V. Foster

To the Romans, vol I - C. Gore

To the Corinthians - J.S. Riggs

To the Philippians - R. Rainy

To the Galatians - Luther

To the Hebrews - H.C.G. Moule

To the Hebrews - T.C. Edwards

Wisdom of James - A.T. Robertson

Epistles of John 1/2 - W. Alexander

Epistles of John 2/2 - W. Alexander

Kingdom of Heaven - E. Burbidge

Deuteronomy - C.H. Mackintosh

Religion and Theology - J. Tulloch

The Being of God - St Anselm

The Existence of God - St Anselm

God Became Man - St Anselm

The Other Wise Man - H. Van Dyke

First Christmas Tree - H. Van Dyke

A Christmas Carol - C Dickens

Thoughts on the Universe

Computer Notes

About the Website


Color Theme:   Night     Day  


May your calling be the best.