Community
Participate
Working Groups
In the dark theme on Windows. The active and hover selection in a Tree has a gray background color. The active and hover selection of a Tree have a kind of blue background. These selections should have a consistent color.
I think this is a SWT issue in the dark theme. Or can be configure the hover selection color for trees / tables?
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183880
Created attachment 286915 [details] Without this change
Created attachment 286916 [details] With this change
Looks way better to me, thank you Rolf. I suggest to merge.
This solves it for the content assistant, however, the issue remains for other tables, like the ones in forms.
Should we close this issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=574412 or should be keep it to further improve this, may be to see if we can add support for custom selection background on all 3 platforms ?
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183880 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=98d5714dbf45c3f66c9630b3f055bb740c243f7f
It seems that the Windows Explorer Darkmode does not have a selection configured, 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 previous patch, 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?
Created Bug 575417 as followup
Dark theme behaves way better on Windows now. Thanks.