Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: change vertical bar color

Tags:

eclipse

trying to deal with a minor issue here: I want to make my eclipse as distraction free as possible. So far I'm satisfied, except for one thing that I've not been able to figure out how to change:

eclipse screenshot with white annoying bars

the white vertical bars are ... annoying. How can I change their color?

Please note that the left ruler is not the code folding bar (which is on the right side of the line numbers), but the so called "vertical ruler" which shows line annotations (eg errors and stuff), to be found in Preferences > General > Editors > Text Editors > Annotations. This bar can not be deactivated (which I don"t want because i find it useful), I just want its color changed. Don't know what the right ruler is though.

not a duplicate of Vertical white line on eclipse or Is it possible to make Eclipse's code-folding gutter black?

edit: but indeed a (partial) duplicate of Change overview ruler color in Eclipse. Problem not solved: changing the system theme (mine is mediterranean dark) did not change the color of the bar.

Thank you

like image 991
Eike Cochu Avatar asked May 08 '13 20:05

Eike Cochu


1 Answers

Found it myself, sharing it for others who want to customize their bar color:

#org-eclipse-e4-ui-compatibility-editor * { background-color: #002b36; }

change the hex value to anything you like. This css snippet has to be added to eclipse in some way (I did it with eclipse Chrome Theme http://marketplace.eclipse.org/content/eclipse-4-chrome-theme#.UYrzEkAW1J0)

FYI: I found the css id with the "css spy" from the eclipse tooling collection (http://marketplace.eclipse.org/content/eclipse-4-tools-css-spy#.UYrzSkAW1J0)

result:

styled eclipse

like image 73
Eike Cochu Avatar answered Oct 10 '22 04:10

Eike Cochu