Eclipse 2019 black background
Asked Answered
E

2

14

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.

Electromotor answered 5/1, 2020 at 11:10 Comment(3)
You will probably have to edit the CSS in the org.eclipse.ui.themes plugin to do this. But a pure black background will look very harsh.Unijugate
for my glossy screen I believe black is better. at least I used to it, thanks for advice, I will tryKerguelen
@greg-449, so I found the place. You were right pure black is that we called "tear out your eye" in Russian. But something like #151515 is quite better compared to default #2f2f2f from my point of view.Kerguelen
E
15

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.

Electromotor answered 6/1, 2020 at 8:11 Comment(7)
Thanks! This was very helpful! FYI, on my Windows system there was no .p2 directory or pool subdirectory, and the file was actually <my_eclipse_installation_dir>\plugins\org.eclipse.ui.themes_1.2.900.v20200106-1021\css\dark\e4-dark_partstyle.css.Larrainelarrie
Great answers. It does help to get the background darker. But I was happy for a bit, then not sure why but looked like eclipse was behaving pretty weird. Could be totally unrelated.Gerthagerti
Confirmed on Linux with Eclipse 2020-03 (4.15.0) Path is plugins/org.eclipse.ui.themes_1.2.900.v20200106-1021/css/dark/e4-dark_partstyle.cssAspire
@Aspire In my plugins/org.eclipse.ui.themes_<version>/css, there is only files like e4_basestyle.css. I am not sure if "Sdk/tools/lib/monitor-x86/plugins", which I found it in is even the right folder. Thanks for helping!Rhythmical
Confirmed again on Linux with Eclipse 2020-09 (4.17.0) Build id: 20200910-1200. Path is now plugins/org.eclipse.ui.themes_1.2.1100.v20200825-0757/css/dark/e4-dark_partstyle.cssAspire
I found it in linux under /snap/eclipse/48/plugins/org.eclipse.ui.themes_1.2.800.v20191127-13 but i can not change it. says "read only file system" any suggestions?Sensualism
Improvment : As mentioned here : bugs.eclipse.org/bugs/show_bug.cgi?id=558782 , it seems it comes from some lines ... ; so, for those that want to modify the text editor background ONLY, simply add this : #org-eclipse-e4-ui-compatibility-editor Composite > * > * { background-color: #000000; }Eugenie
L
0

There seems to be a recent Eclipse bug with possibly a duplicate.

There is a possibly duplicate question here which has at least one additional suggested workaround besides the other answer to this question.

Larrainelarrie answered 2/4, 2020 at 19:34 Comment(1)
Also described by Eclipse Bug 559321Aspire

© 2022 - 2024 — McMap. All rights reserved.