Bug 576494 - Styles are not shown for the selected item in table and tree
Summary: Styles are not shown for the selected item in table and tree
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.22   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 576495 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-07 04:18 EDT by Miklos Magyari CLA
Modified: 2021-10-11 05:24 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot of the issue (29.54 KB, image/png)
2021-10-07 04:18 EDT, Miklos Magyari CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.