Bug 501992 - [Dark Theme] Search highlight color is really bad
Summary: [Dark Theme] Search highlight color is really bad
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.7 M3   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks: 497562
  Show dependency tree
 
Reported: 2016-09-22 08:34 EDT by Lars Vogel CLA
Modified: 2017-04-03 14:54 EDT (History)
5 users (show)

See Also:


Attachments
New color screenshot (59.57 KB, image/png)
2016-09-22 08:34 EDT, Lars Vogel CLA
no flags Details
Old hightlight color (58.76 KB, image/png)
2016-09-22 08:34 EDT, Lars Vogel CLA
no flags Details
blue highlighting color (54.24 KB, image/png)
2016-09-22 09:29 EDT, Ian Pun CLA
no flags Details
New Search Highlight Coloro in Mac (150.54 KB, image/png)
2016-09-28 06:48 EDT, Matthias Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2016-09-22 08:34:29 EDT
Created attachment 264345 [details]
New color screenshot

Currently color for highlighting search results results in unreadable text. I suggest to change it to a better color.

My current suggestion would be to set org.eclipse.search.ui.match.highlight to 206,92,0.

Screenshots attached.
Comment 1 Lars Vogel CLA 2016-09-22 08:34:51 EDT
Created attachment 264346 [details]
Old hightlight color
Comment 2 Eclipse Genie CLA 2016-09-22 08:42:38 EDT
New Gerrit change created: https://git.eclipse.org/r/81685
Comment 3 Lars Vogel CLA 2016-09-22 08:49:08 EDT
Adding a few people interested in the dark theme. If nobody objects or suggests a better color, I merge this in a few days.
Comment 4 Eclipse Genie CLA 2016-09-22 09:08:18 EDT
New Gerrit change created: https://git.eclipse.org/r/81688
Comment 5 Ian Pun CLA 2016-09-22 09:29:55 EDT
Created attachment 264347 [details]
blue highlighting color
Comment 6 Ian Pun CLA 2016-09-22 09:32:01 EDT
Hi Lars, it looks like on my end, my highlighting color is actually blue, but both the color of our  highlighting search results is the same off-white color. It might not be best to set the org.eclipse.search.ui.match.highlight to the static color of 206,92,0 in this case. I tried checking on preferences for why mine highlights to blue instead of the orange on your workspace, but I couldn't find anything custom.
Comment 7 Lars Vogel CLA 2016-09-22 09:44:30 EDT
(In reply to Ian Pun from comment #6)
> Hi Lars, it looks like on my end, my highlighting color is actually blue,
> but both the color of our  highlighting search results is the same off-white
> color. It might not be best to set the org.eclipse.search.ui.match.highlight
> to the static color of 206,92,0 in this case. I tried checking on
> preferences for why mine highlights to blue instead of the orange on your
> workspace, but I couldn't find anything custom.

My change should not affect the "active selection color" but on the other color. In your screenshot it is used in line 18, 35, 41 and makes the matching result not readable. Can you try the patch to see the result?
Comment 8 Ian Pun CLA 2016-09-22 10:18:53 EDT
(In reply to Lars Vogel from comment #7)
> (In reply to Ian Pun from comment #6)
> > Hi Lars, it looks like on my end, my highlighting color is actually blue,
> > but both the color of our  highlighting search results is the same off-white
> > color. It might not be best to set the org.eclipse.search.ui.match.highlight
> > to the static color of 206,92,0 in this case. I tried checking on
> > preferences for why mine highlights to blue instead of the orange on your
> > workspace, but I couldn't find anything custom.
> 
> My change should not affect the "active selection color" but on the other
> color. In your screenshot it is used in line 18, 35, 41 and makes the
> matching result not readable. Can you try the patch to see the result?

I gave the patch a go and it didn't seem to fix the issue as I am still seeing the bad highlighting. I even created a new workspace to see if that was the issue but it is not setting the color at all. Any suggestions?
Comment 9 Lars Vogel CLA 2016-09-22 10:48:35 EDT
(In reply to Ian Pun from comment #8)

> I gave the patch a go and it didn't seem to fix the issue as I am still
> seeing the bad highlighting. I even created a new workspace to see if that
> was the issue but it is not setting the color at all. Any suggestions?

I tested on my second workstation and indeed the patch does not work. I will investigate.
Comment 10 Lars Vogel CLA 2016-09-28 04:27:16 EDT
(In reply to Ian Pun from comment #8)
> I gave the patch a go and it didn't seem to fix the issue as I am still
> seeing the bad highlighting. Any suggestions?

EGit is overriding this setting because of Bug 466075. Can you test the patch without EGit in your runtime configuration?
Comment 11 Matthias Becker CLA 2016-09-28 06:48:41 EDT
Created attachment 264466 [details]
New Search Highlight Coloro in Mac

The new color looks good on mac. See my screenshot
Comment 12 Lars Vogel CLA 2016-09-28 09:41:39 EDT
(In reply to Matthias Becker from comment #11)
> The new color looks good on mac. See my screenshot

Thanks Matthias. Ian, do you still see problems with the change? If not, I plan to merge it tomorrow.
Comment 13 Ian Pun CLA 2016-09-28 10:18:35 EDT
(In reply to Lars Vogel from comment #12)
> (In reply to Matthias Becker from comment #11)
> > The new color looks good on mac. See my screenshot
> 
> Thanks Matthias. Ian, do you still see problems with the change? If not, I
> plan to merge it tomorrow.

Can confirm this works without egit in run configuration. Go ahead with the merge!
Comment 15 Ian Pun CLA 2016-09-30 11:10:07 EDT
Thanks for the patch Lars! 

Also, is there any fix to the highlighting if we do happen to use egit?
Comment 17 Markus Keller CLA 2016-10-27 13:55:37 EDT
We first fix things and then announce them. I'll remove this item from the M3 N&N, since it's not worth wasting our readers' time until it works.
Comment 18 Lars Vogel CLA 2016-10-27 14:23:48 EDT
(In reply to Markus Keller from comment #17)
> We first fix things and then announce them. 

Bug 466075 is not specific to this development, it affects all preference styling, e.g, the JDT code editor styling. This development works fine, similar to the JDT code styling or other styling.

I'll remove this item from the
> M3 N&N, since it's not worth wasting our readers' time until it works.

-1, please see above commend.
Comment 19 Markus Keller CLA 2016-10-27 14:36:39 EDT
Users don't care why something doesn't work. It just doesn't work and that gives the whole project a bad reputation.
Comment 20 Lars Vogel CLA 2016-10-27 14:42:55 EDT
(In reply to Markus Keller from comment #19)
> Users don't care why something doesn't work. It just doesn't work and that
> gives the whole project a bad reputation.

I completely agree. Unfortunately that is how the CSS engine was implemented by Daniel Rolka. So I have to assume this is works as designed until we redesign the preference CSS styling engine via Bug 466075.
Comment 21 Eclipse Genie CLA 2017-04-03 14:44:56 EDT
New Gerrit change created: https://git.eclipse.org/r/94324