How do I change the background color of the Navigator view in eclipse?
Asked Answered
O

4

6

I didn't find any option for that, so I suspect that some views follow the color pattern of the operating system. I'm currently using OS X, and it seems like changing the default background color it's not possible either.

What I'm trying to accomplish is to create a dark background theme, but customization seems only possible on some of the eclipse views.

Omniumgatherum answered 2/4, 2010 at 21:42 Comment(0)
C
0

As mentioned in "Changing UI color in Eclipse":

Each time you see white or gray color, this is more than likely related to OS system colors.

(that is, for everything which is not an editor or a custom view).

This is likely the case for the navigator view, as reminded in "How to change background of all VIEWS in Eclipse IDE ?"

Chadwickchae answered 2/4, 2010 at 22:2 Comment(0)
S
11

For platforms where eclipse uses gtk (Linux for example) one can use a custom gtkrc file (place it for example in the eclipse base directory)

style "eclipse" {
base[NORMAL] = "#FDF6E3"
fg[SELECTED] = "#FDF6E3"
base[SELECTED] = "#073642"
fg[NORMAL] = "#073642"
text[NORMAL] = "#073642"
base[ACTIVE] = "#073642"
}
class "GtkWidget" style "eclipse"

And a custom start script for eclipse

#!/bin/sh
GTK2_RC_FILES=gtkrc ./eclipse

Got the solution from http://blog.sarathonline.com/2008/10/solved-eclipse-looks-good-in-ubuntu-now.html

Combine this with the color themes plugin for coloring the editors

Spleenful answered 12/6, 2011 at 17:10 Comment(1)
Where do we find a complete list of the options that are available? Like what are the toolbar and tab colors?Boundless
M
1

My case is: Eclipse ver. 2018-09, Win 10. Eclipse install folder: C:\eclipse\eclipse-2018-09

I compared 2 files: 1) C:\eclipse\eclipse-2018-09\plugins\org.eclipse.ui.themes_1.2.200.v20180828-1350\css\e4_basestyle.css 2) C:\eclipse\eclipse-2018-09\plugins\org.eclipse.ui.themes_1.2.200.v20180828-1350\css\e4-dark.css

And find out css selector "CTabFolder Tree, CTabFolder Canvas" is present in dark, but absent in basestyle.

Add this selector in file "e4_basestyle.css"

CTabFolder Tree, CTabFolder Canvas {
    background-color: #dddddd;
    color: #000;
}

and You can tune color for nav view.

Then select theme "Light" in Preferences->General->Appearance and click "Apply".

Maccarone answered 2/12, 2018 at 22:57 Comment(0)
R
0

When Git is present, Project Explorer colors can be altered via Preferences > General > Apparearance > Colors and Fonts > Git

Rillings answered 2/4, 2010 at 21:42 Comment(0)
C
0

As mentioned in "Changing UI color in Eclipse":

Each time you see white or gray color, this is more than likely related to OS system colors.

(that is, for everything which is not an editor or a custom view).

This is likely the case for the navigator view, as reminded in "How to change background of all VIEWS in Eclipse IDE ?"

Chadwickchae answered 2/4, 2010 at 22:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.