netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Make color of "mark occurrences" in editor sidebar configurable

Open nmatt opened this issue 1 month ago • 1 comments

Description

The color of the "mark occurrences" marks in the editor sidebar is not configurable. Depending on color scheme and presence of other marks, the default color isn't very visible. It would be helpful to be able to configure it.

The "mark occurrences" highlighting in the editor contents is configurable under Options > Fonts & Colors > Syntax > All Languages > Mark Occurrence. A secondary highlighting category for the sidebar would be useful, possibly under Syntax > Highlighting.

Use case/motivation

Accessibility improvemen / personalization.

Related issues

This is the same issue as in this old Stackoverflow question: https://stackoverflow.com/questions/6207419/color-of-mark-occurrences-in-vertical-bar-in-netbeans

Are you willing to submit a pull request?

No

nmatt avatar Nov 05 '25 17:11 nmatt

some of the error stripe colors seem to be hardcoded atm

error/warn/green https://github.com/apache/netbeans/blob/beddaf0a6cecbd3973fbdef8ff4d90b9b43a1aaf/ide/editor.errorstripe/src/org/netbeans/modules/editor/errorstripe/AnnotationView.java#L233-L235

mark occurrences impl for java: https://github.com/apache/netbeans/blob/beddaf0a6cecbd3973fbdef8ff4d90b9b43a1aaf/java/java.editor/src/org/netbeans/modules/java/editor/semantic/MarkOccurrencesHighlighter.java#L62

not sure about the others

mbien avatar Nov 05 '25 21:11 mbien