Bug 576494

Summary: Styles are not shown for the selected item in table and tree
Product: [Eclipse Project] Platform Reporter: Miklos Magyari <miklos.magyari>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: rolf.theunissen
Version: 4.22   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Screenshot of the issue none

Description Miklos Magyari CLA 2021-10-07 04:18:24 EDT
Created attachment 287271 [details]
Screenshot of the issue

I am working on an Eclipse plugin and now implementing some code completion proposals for class members where I show the members' visibility using a colored square. I have implemented ICompletionProposalExtension6 for this so the lines can have styles. The squares are practically colored Unicode square characters.

It almost works as I want except that colors are not shown for the selected item, its text is converted to the color configured by setProposalSelectorForeground() (see the black square in the image).

It seems this is hardcoded behavior and eclipse ignores styles for the selected items (at least for the colors). It would be great if this could be improved somehow as it decreases the usability of styles for the proposals (for example, I could imagine a boolean setting to control whether only the background color is changed for the selected item).
Comment 1 Rolf Theunissen CLA 2021-10-11 05:16:04 EDT
*** Bug 576495 has been marked as a duplicate of this bug. ***
Comment 2 Rolf Theunissen CLA 2021-10-11 05:24:06 EDT
Styles are also not shown on the selected elements any other tree in the Eclipse IDE.

Moving to SWT for analysis.