This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256847

Summary: Highlighting of "Go to Type" can be hard to read
Product: java Reporter: matthies <matthies>
Component: NavigationAssignee: Tomas Zezula <tzezula>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Example of how the highlighting can make the selected match hard to read

Description matthies 2015-11-28 19:01:16 UTC
Created attachment 157539 [details]
Example of how the highlighting can make the selected match hard to read

Since NB 8.1, "Go to Type" uses the "Mark Occurrences" syntax highlighting within the currently selected match. However, depending on the choice of colors, this can clutter up the display of the selected match, making it harder to read. This is particularly the case when using the camel-case beginning-of-word letters (e.g. typing "CSLS" to find "ConcurrentSkipListSet").

For example, I use white text on dark blue background for selections and black on light yellow for "Mark Occurrences". This makes for a jarring display for the selected match under "Go to type". Elsewhere this color choice is fine because marked occurrences are not typically part of selected text.

To fix this, I would suggest adding the option to turn off this highlighting under "Go to type", or to use a separate highlighting category rather than the one for "Mark Occurrences".
Comment 1 Tomas Zezula 2015-11-30 08:55:31 UTC
IDE Options/Editor/GoTo - you can select how the highlighting is done (None, Background, Bold).
Or you can change the "Mark Occurrences" background color.
Comment 2 matthies 2015-11-30 14:53:00 UTC
Thanks, I missed that tab.