Bug 575417 - [win32][dark theme] Native and custom drawn table selection have different background.
Summary: [win32][dark theme] Native and custom drawn table selection have different ba...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.21   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 566280
Blocks: 577357
  Show dependency tree
 
Reported: 2021-08-15 09:07 EDT by Rolf Theunissen CLA
Modified: 2022-01-18 09:46 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Theunissen CLA 2021-08-15 09:07:51 EDT
Create as followup of Bug 566280.

It seems that the Windows Explorer Darkmode does not have a selection configured for tables, the blueish selection color is the same as when no theme is selected.
Therefore, in dark mode, the selection of the table should be custom drawn always.

One way to trigger that behavior is to add, to the table (e.g. when creating the handle):
   addListener(SWT.EraseItem, e -> {});

This triggers the custom draw, together with the Bug 566280, this draws the grayish selections. It feels to me as a hack though, is there anybody available to make this into high quality code?
Or should we trigger something like this from the SWT/UI CSS theme engine?