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:
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
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:
Btw, It looks like you can actually just disable this bar by going to Preferences > General > Editors > Text Editors. Then just uncheck the box labeled "Show range indicator".
Thanks for sharing your solution. I could apply the code by just adding to CSS files in eclipse\plugins\org.eclipse.platform_4.3.1.v20130911-1000\css.
I use Windows 7 theme so added to e4_default_win7.css. And I slightly modified the rule to have less side effect (occurrence markers were hard to see with the colors set by color theme).
#org-eclipse-e4-ui-compatibility-editor Composite > Canvas {
background-color: #232323;
}
I had a similar problem, but for me with Neon .2 on windows it was the unfold bar that stayed white. After I disabled unfold and enabled it, the bar stayed black(for now). But you could also just keep it disabled. It is shown in the link below.
link to the PrntScrn to disable unfold bar
Related
Is there a way to modify this theme, which is pretty great, to make the comments more distinct? The light grey default is quite hard to read when my screen backlight is low.
Go to Window > Preferences > Java > Editor > Syntax Coloring.
Expand the 'Comments' sections. Selecting the comment type (Multi-line, single-line) will enable the color box on the right hand side. Pick away!
Since upgrading to Ubuntu 12.10, one of the things that's been annoying me is the background color of the left margin of the Eclipse Java editor window. It's pretty much white, which makes it difficult to see where the actual left edge of the editor window ends and the margin begins. Screenshot:
I've looked through all the Eclipse color settings and also all the "Gnome Color Chooser" settings and I don't see where I would change this. Any ideas?
Thanks!
You will want to go to Windows->Preferences->General->Editors->Text Editors and find the section called Appearance color options. You will want to change the Selection background color. This will also change the background of the main document, but this will make where one section begins and ends well defined. You can experiment with these settings and the settings under Java->Editor until you get the color scheme you want.
I've been trying to change the background color for the 'quick-fixes' pop-up (the pop up that lists ways to fix an error) in eclipse juno. Currently the color is black and the text is blue which makes it very hard to read.
I cant find the correct way to change the color. Please help. Its really annoying to squint and have to read blue text on a black background.
This was driving me nuts as well, here is the fix.
Go to preferences.
Search for "Annotations"
for each Annotation Type:
if "Text as" == "Highlighted" and Color == black:
Set the color to light or uncheck "Text As"
In this screen shot, I am fixing Occurrences.
The problem I show to the left is the "Matching Tags" annotation which had the same problem.
You can change the color of the text in the pop-up.
In windows you can go Control Panel, search for colors and metrics and then select Change window colors and metrics. In the item menu select Hyperlinks and change the Color.
EDIT: This fix is valid for Windows 7. Windows 10 does not have the option to change Hyperlinks color.
Right Click anywhere in the Editor Window, and at the bottom of the context menu select Preferences. This will bring you into Java -> Editor. At the bottom ofthat window select the element colors you wish to change, in your case Parameter hints background and Parameter hints background or Completion overview background and Completion overview foreground, depending on which one it is you are having a problem with.
From what I found, I do not think you can change the color. I am not willing to go to Eclipse source code and find it but here's what fixed it for me. Not perfectly but to a level I can use the quick fix. In my case, the background and foreground was same. (Luna, Dark Theme, Using Solarized Editor Theme).
Go into the Preferences (Window -> Preferences)
Choose General -> Appearance from the left menu
Uncheck the checkbox Use mixed fonts and colours for labels
The detail is in this post. How to change the highlight color in autocomplete box in Eclipse
I've recently downloaded Eclipse 3.6, everything works fine, but there is one issue that really frustrates me. The highlight color of a currently selected item in a code assist popup is barely visible against white background. I've tried to mess with color settings, but it seems that there is no option for my needs. The line highlight color set in Windows color scheme is only used to highlight in a focused popup.
I believe it is hidden in another part of Preferences. I personally wanted to change the highlighted or currently selected line color, and could not find anything in Colors and Fonts. Ends up it was in...
General -> Editors -> Text Editors
And you just need to go through every option in the "Appearance color options" box there. One is "Current line highlight" and that fixed my problem. I hope it helps yours!
I know you're trying to change the highlight color, but if the problem is contrast you can change the content assist background color, and get this kind of contrast
The setting is General->Appearance->Color Basic->Content Assist Background
Then it's just a matter of finding colors that please you.
Try Preferences->General->Appearance->Color and Fonts then find the appropriate category.
Some editors will have support for "Colored labels - match highlight"
I was having the same issue and I've found a solution for windows XP. If you go to Control Panel -> Display -> Appearance -> Advanced and select 3D Objects under Item you can change the color of this highlight to a darker color.
However it does change the appearance of other parts of your windows.
How to change overview rule background color in Eclipse 3.4.0.I20080617-2000 (vertical bar on right of editing window with some annotations) ?
General > Editors > Text Editors > Annotations allows only to change colors of marks itself not background of whole bar.
It looks like my web searching skills are getting weaker since I cannot find it anywhere ...
I also faced the problem of not being able to see the colors in the annotations ruler, so I've made a small plugin which enables setting the background color for the ruler. You can D/L it
from here: https://github.com/chookapp/AnnotationsRulerBackground
(screenshots at: https://github.com/chookapp/AnnotationsRulerBackground)
I have the same problem as Michal - this seems to be non-customisable.
I have trouble seeing some of the annotation marks in the overview ruler due to Vista's lighter colouring. You can change the colour of the marks, but the bar itself doesn't change colour.
It looks like the only way to change it is to change the system colours for all windows.
you can only change the color for the occurrence marking inside the editor (General > Editors > Text Editors > Annotations). The color in the overview ruler is computed from that color.
Add the following lines at the end of e4_classic_win7.css
#org-eclipse-e4-ui-compatibility-editor Composite > Canvas {
background-color : #232323;
}
The file is located in
Eclipse Kepler : \plugins\org.eclipse.platform_4.3.2.v20140221-1700\css\
Eclipse Mars : \plugins\org.eclipse.ui.themes_1.1.1.v20151026-1355\css\
Be sure to select windows clasic theme in Preferences->General->Appearance
And restart eclipse.
Alternatively you can edit the other corresponding css files.
Note: You have to choose you own preferred RBG color instead of #232323
My solution has been to make the text light on a dark background across all text editors. (Window -> Preferences -> General -> Editors -> Text Editors -> Background color => BLACK, and then every 'Syntax Coloring' you need)
This way the annotation colours I choose can be quite highly saturated dark colours - the text is then still legible over the annotation highlight in the text editor, but the marker in the overview ruler is also highly visible (assuming a light window colour in your OS).
The downside of this is that you have to do a lot of customising to get there. (Its worth exporting your preferences for other workspaces if you plan to go down this route.) And its more of a workaround than an answer :-(
It seams to work for me.
The only thing to do is to "restart" Eclipse after your change.
The overview ruler and the editor will display the selected color
What if you are using eclipse 4, try this.
https://github.com/jeeeyul/eclipse-themes
You can actually just disable this bar by going to Preferences > General > Editors > Text Editors. Then just uncheck the box labeled "Show range indicator". The annotations will still appear, the bar will take the color of your theme. Solution found there.
i added below and works well in eclipse luna & neon. It works
#org-eclipse-e4-ui-compatibility-editor Canvas,
#org-eclipse-e4-ui-compatibility-editor Canvas > * > * {
background-color: #b5c7ce;
}
background-color: #e0d2d2;
}