Eclipse-Spectrum-Theme icon indicating copy to clipboard operation
Eclipse-Spectrum-Theme copied to clipboard

Selection background color (Mac) doesn't fit

Open ingomohr opened this issue 5 years ago • 21 comments

ℹ️ 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.

Screenshot 2020-07-17 at 23 31 48

1.0.0.202007030329 Eclipse 4.17

ingomohr avatar Jul 17 '20 22:07 ingomohr

Thanks for reporting @ingomohr, will fix this very soon :)

AObuchow avatar Jul 17 '20 23:07 AObuchow

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

AObuchow avatar Jul 20 '20 15:07 AObuchow

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

AObuchow avatar Jul 20 '20 15:07 AObuchow

It's the other bugger - the background.

And that one says: "Let the sun go up, up, up!" ;)

ingomohr avatar Jul 20 '20 17:07 ingomohr

Maybe some dark grey would fit nicely :)

ingomohr avatar Jul 20 '20 17:07 ingomohr

@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: image

AObuchow avatar Jul 20 '20 17:07 AObuchow

@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. Do you have another hint? Maybe there's some other preference value that's not right.

The image looks as if the selection foreground is not used - or is transparent.

Screenshot 2020-07-20 at 19 46 40

ingomohr avatar Jul 20 '20 17:07 ingomohr

@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 avatar Jul 20 '20 18:07 AObuchow

@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). Atm I'm on a 4.17 integration build.

ingomohr avatar Jul 20 '20 18:07 ingomohr

@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:

Screenshot 2020-07-22 at 22 05 22

Maybe, some theming behaves differently on the Mac - I don't know. If there is something else you have that I can try, I will :)

ingomohr avatar Jul 22 '20 20:07 ingomohr

@ingomohr I suspect this is an upstream issue then :P How do things look on the platform dark theme when highlighting text?

AObuchow avatar Jul 22 '20 20:07 AObuchow

Screenshot 2020-07-22 at 22 18 03

W/ the dark theme Eclipse is shipping with - it's at least the same approach: The foreground color doesn't change.

ingomohr avatar Jul 22 '20 20:07 ingomohr

Will try on my own Mac tomorrow as well. :)

PyvesB avatar Jul 22 '20 20:07 PyvesB

@ingomohr okay good to know and thank you @PyvesB !

AObuchow avatar Jul 23 '20 01:07 AObuchow

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.

PyvesB avatar Jul 23 '20 09:07 PyvesB

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.

Thanks for checking, @PyvesB. So, it actually is an upstream bug. One point for you, @AObuchow 😉

ingomohr avatar Jul 23 '20 09:07 ingomohr

@PyvesB @ingomohr thanks for the further investigation, it seems an upstream bug is required for this one :P

AObuchow avatar Jul 23 '20 15:07 AObuchow

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.

PyvesB avatar Aug 11 '20 12:08 PyvesB

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...

ingomohr avatar Aug 11 '20 20:08 ingomohr

I have a similar issue on windows. I overwrite the selection background color by checking system default but after every restart the settings are reset to yellow (same thing for foreground color). Shouldn't the overwrite only be applied after theme switch?

image

fabianlupa avatar Nov 05 '20 08:11 fabianlupa

@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.

AObuchow avatar Nov 05 '20 18:11 AObuchow