-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selection background color (Mac) doesn't fit #116
Comments
Thanks for reporting @ingomohr, will fix this very soon :) |
IIRC on Linux the highlight foreground color is set to black, but maybe this is coming from my workspace preferences and not Spectrum Theme... I'll fix that |
Hm odd, the selection foreground color is being set here https://github.com/AObuchow/Eclipse-Spectrum-Theme/blob/master/com.aobuchow.themes.spectrum/css/preference_styles.css#L40 |
It's the other bugger - the background. And that one says: "Let the sun go up, up, up!" ;) |
Maybe some dark grey would fit nicely :) |
@ingomohr dark grey is fine with me, IIRC it used to be that color. However, the point I was trying to make is that the foreground color shouldn't be white (as it is in your image), it should be black as seen here: |
@AObuchow Ah ok. And the foreground actually is shown as "black" on the preference page. Still, when I select code, it looks kind of broken. The image looks as if the selection foreground is not used - or is transparent. |
@ingomohr hm strange, maybe this an upstream bug. Would you mind trying to change the foreground & background color preferences manually to see if you're able to get the foreground color working? |
@AObuchow I did that, but it had no effect. Maybe it's a plugin I installed. I'll try again later with the Eclipse 2020-06 release build (or 4.17M1). |
@AObuchow I just downloaded the release build of 2020-06 (for Java and DSL devs), started in on a new workspace, installed Spectrum from the Github updatesite and restarted Eclipse. This is what it looks like on my Mac: Maybe, some theming behaves differently on the Mac - I don't know. |
@ingomohr I suspect this is an upstream issue then :P How do things look on the platform dark theme when highlighting text? |
Will try on my own Mac tomorrow as well. :) |
It seems that for macOS, the foreground color property is ignored, the syntax highlighting of the original text is used. On Windows, the foreground color property is used. |
I noticed another similar issue on macOS: the selection background color is ignored in some editors. I've raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=565967 to flag it up. Unless both problems are linked, we may need another separate bug, as it's the foreground that is ignored here if I've understood things correctly. |
Thanks for raising that bug, @PyvesB. I wonder why I haven't noticed that before... |
@flaiker thanks for the report, I believe this might be an upstream issue with Eclipse preferences but not entirely sure yet. You are correct that this overwrite should only be applied after theme switch and not on every restart of Eclipse. Further investigation will have to be done to find the source of this bug. I was also able to reproduce this bug on Linux, so I don't think it's a platform-dependent bug. Furthermore, it seems that it's only the "system default" preference that gets reset (disabled) upon restarting Eclipse: if you change the selection background/foreground color manually to another color, it will persist upon restarting Eclipse. It's worth noting that Spectrum theme explicitly disables system default colors for selection, however, I did not expect it to prevent using/modifying the system default color preference. Perhaps removing this line will fix this bug. |
ℹ️ Blocked by https://bugs.eclipse.org/bugs/show_bug.cgi?id=565967
The "Selection background" color is set to bright yellow.
Since the text in the dark theme is near white, it's hard to read.
1.0.0.202007030329
Eclipse 4.17
The text was updated successfully, but these errors were encountered: