Skip to content
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

Open
ingomohr opened this issue Jul 17, 2020 · 21 comments
Open

Selection background color (Mac) doesn't fit #116

ingomohr opened this issue Jul 17, 2020 · 21 comments
Labels
bug Something isn't working needs upstream bug

Comments

@ingomohr
Copy link
Contributor

ingomohr commented Jul 17, 2020

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

@AObuchow
Copy link
Owner

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

@AObuchow AObuchow added the bug Something isn't working label Jul 17, 2020
@AObuchow
Copy link
Owner

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
Copy link
Owner

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

@ingomohr
Copy link
Contributor Author

It's the other bugger - the background.

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

@ingomohr
Copy link
Contributor Author

Maybe some dark grey would fit nicely :)

@AObuchow
Copy link
Owner

@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

@ingomohr
Copy link
Contributor Author

ingomohr commented Jul 20, 2020

@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

@AObuchow
Copy link
Owner

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

@ingomohr
Copy link
Contributor Author

ingomohr commented Jul 20, 2020

@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
Copy link
Contributor Author

ingomohr commented Jul 22, 2020

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

@AObuchow
Copy link
Owner

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

@ingomohr
Copy link
Contributor Author

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.

@PyvesB
Copy link
Contributor

PyvesB commented Jul 22, 2020

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

@AObuchow
Copy link
Owner

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

@PyvesB
Copy link
Contributor

PyvesB commented Jul 23, 2020

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.

@ingomohr
Copy link
Contributor Author

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 😉

@AObuchow
Copy link
Owner

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

@PyvesB
Copy link
Contributor

PyvesB commented Aug 11, 2020

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.

@ingomohr
Copy link
Contributor Author

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

@fabianlupa
Copy link

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

@AObuchow
Copy link
Owner

AObuchow commented Nov 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs upstream bug
Projects
None yet
Development

No branches or pull requests

4 participants