问题
After install of 2019-12 version of Eclipse I can't set black background while using Dark theme and Default set of colors. If I change color in General -> Editors -> Text Editors -> Appearance color options -> Background color - I see line numbers background color get changed to my choice, while text area remain in same dark grey, regardless of the color I choose.
I tried to manually edit epf preferences and import them back, but even this way doesn't work. Is there a some change/bug in Eclipse 2019-12 which override the user chose? There are some already answered questions about Eclipse colors, but I believe they are not helpful after recent changes.
回答1:
For those who come here by googling, you can change the color of Java editor, Package Explorer and Outline views background in one place, see file
<..>.p2\pool\plugins\org.eclipse.ui.themes_<version>\css\dark\e4-dark_partstyle.css
and then edit background-color
.MPart DependenciesComposite > SashForm > Section > * { /* Section > DependenciesComposite$... */
background-color: #151515;
color: #AAAAAA;
}
I found #151515
better than default one.
回答2:
There seems to be a recent Eclipse bug.
There is a possibly duplicate question here which has at least one additional suggested workaround besides the other answer to this question.
来源:https://stackoverflow.com/questions/59599251/eclipse-2019-black-background