I am trying to change background color for Eclipse. I want the editor background to be completely black. To make the UI respond I first have to choose a random color, as I do at step A in the picture. Then I can choose black, click Apply and I get the desired color as seen at step B. But as soon as I exit the settings dialog, the color changes back to step C. It looks like eclipse thinks the grey-ish color is actually black, I don't know. Does anyone know how to deal with this?
eclipse pic
Not the best answer but I found a way to fix it. Im using moonrise theme.
Opened eclipse/plugins/ and found com.github.eclipseuitheme.themes.moonrise-ui,
opened the jar file and edited the moonrise-ui-standalone_WIN.css file (yes im using windows 10, 64 bit (if that has anything to do with it(there were several similiarly named files)))
changed this block:
.MPartStack.active #org-eclipse-e4-ui-compatibility-editor Canvas > * > * {
background-color: #000000;
}
Now it seems to work just fine with black background.
Related
I try to change the color of the current line in the debugger,
since the contrast is very bad, you can barely read it.
I searched all options under Fonts & Colors but I could not find it.
It even persists after applying a new theme.
To change the background color of the current line within the debugger:
Tools > Options > Fonts & Colors
Click the Annotations tab.
From the Category list select Current Program Counter.
Select the new Background color, which is yellow in the example below, and click Apply.
In my case I tested this by debugging a servlet. Simply redeploying the application, or restarting the application server, did not trigger the background color change. Instead I needed to close and reopen the edit window of the source code that was being debugged for it to become effective. You could just restart NetBeans instead, but that seems like overkill.
I have been trying for the past hours to fix my font colour on eclipse but nothing seems to work. I don't want to work on White theme because I get a headache so I always turn my theme to a darker colour but eclipse does not seem to recognize any component (variable, object, etc) thus almost everything is black on black. I even downloaded the Eclipse color theme plugin and it still doesn't work.
please help me.
Eclipse image preview
I've applied a custom code coloring theme to eclipse 4.3 (Kepler), but there is this annoying thin vertical white line separating code and line numbers. Is it possible to change it's color somehow?
I'm on Ubuntu 13.10 (Saucy Salamander) 64bit, Java 1.7_45 64bit
UPDATE: I've installed Chrome Theme which allows certain customisation, so I was thinking maybe there is a css to change that line color?
That white (it's not white actually but #F8F8F8) line was haunting my dark theme. Google sent me here but couldn't find a working solution. But I found some clues as to where to look for a solution. If you're running Eclipse on Windows 7, there's a file called e4_default_win7.css inside one of the folders. Just search for it.
In that file the last section is,
CTabFolder Canvas {
background-color: #28446a;
}
Just change the color there. That'll solve the problem. I actually did this for my TrueStudio Eclipse IDE. But this leaves another problem. The text is too close to the line numbers and I don't know how to change the margin between them!
Screenshot - see what I'm talking about
In my Eclipse installation, the selected entry in the content assist menu is almost unreadable because the colour is white on white-greyish. See image below.
I can change the background and text colour of the non-selected entries in the list from eclipse preferences, but the selected entry is always the same colour and is always unreadable. I use the Eclipse Color Theme RecognEyes, but that should only affect the editor as far as I understand.
How do I make the text of the selected entry in the context assist menu readable?
Update
After reading m1shk4's answer it does indeed seem that Eclipse takes it's colours from the current gnome theme. However it does this in a kind of weird way.
The background colour of the content assist "window" is the input boxes background colour, and the text colour is the input boxes text colour. This all seems logical.
However the background colour of the selected entry is the windows background colour, but the text of the selected entry is not the background text colour.
See image below for an illustration.
Does anybody know how to fix or workaround this issue?
Working workaround
It seems this issue is rather specific with the default gnome theme in Ubuntu. Switching to another gnome theme solves the issue for me.
Not sure if it's still in time but this might help all of you who are having the same problem, as I had:
Create a file ~/.gtkrc-2.0 and add this content to the file:
style "eclipse_fix"
{
base[ACTIVE] = shade(0.7, "#4283d3")
}
class "GtkTreeView" style "eclipse_fix"
Then just set Unity a new theme (in Configuration > appearance) and set again to the previous theme (Ambiance for instance). That will read the new file created above and the new color will take effect in eclipse.
I'm on Eclipse Neon and using Eclipse Color Themes.
I've solved this issue by:
Window-> Preferences-> General-> Appearance:
->Uncheck "Use mixed fonts and colors for labels."
Windows > Preference > General > Appearance > Color and Fonts
Basic > Content Assist background color, Content Assist foreground color:
and voilĂ !
Update
Interface is in Russian, but I think it's clear that colors, you're looking for, correspond to Selected Items entry. On my screenshot its light-blue for background and black for foreground.
If you are on Ubuntu / Unity, go ahead and install and start gnome-color-chooser.
Global Colors -> Default Configuration, Entry Fields -> selected and change fg and bg colors according to your needs.
I have the same issue on Windows 7. I found that text color(unselected text) of the content assist box can be changed under:
Desktop->Personalize->Window Color->Advanced Appearance Settings->Item->MessageBox
The only problem is one cannot set the background color for the MessageBox. -> any help from someone else?
At least this way you can read something...
NOTE: Be warned that a lot of other applications may depend on the messageBox color!
I was able to fix this in Ubuntu 12.04 by editing a file in the theme (I use Radiance):
sudo vi /usr/share/themes/Radiance/gtk-2.0/gtkrc
At the top is a key "gtk-color-scheme" with a bunch of color variables that are used later in the file. I make these changes: tooltip_fg_color:#000000 selected_fg_color:#000000 tooltip_bg_color:#f5f5b5
After making the changes, change your theme to something else then back, and most everything looks better! I did have to restart eclipse to get the fonts in the borders of the window to update.
Note that unfortunately these changes get overwritten sometimes during updates. There may be a way to use ~/.gtkrc-2.0 to do the same thing, I just don't know anything about that file.
Recently after scorching my retinas from the garish white background in Eclipse, I found some of the excellent posts about how to change the colors so it uses sane (i.e. dark background) colors in the editor. However, one problem present in all solutions is that background of the column with the expanders for code folding is always white. Is there a way to change the background of that column?
I'm not the only person that has this problem, as shown in the screenshots for the following questions:
Dark Color Scheme for Eclipse
Color Themes for Eclipse (application of color schemes results in this issue on a Mac, no idea about PC)
I know that the problem is not language specific as it happens in Java, Python, HTML, and everything else. Any hints on where in the pages of preferences this setting is?
This is related to Eclipse Bug 62712 which is fixed in build 20090329-2000 almost a year ago. In my Galileo of build 20090920-1017 it just works when I change the background color through General > Editors > Text Editors. Here's a screen (don't pay attention to the ugly color combo, my bg defaults to white and I just picked random yellow to demonstrate that the ruler background get changed as well):
In other words, just upgrade your Eclipse to include this bugfix. Did you check Help > Check for Updates?