Community
Participate
Working Groups
Created attachment 286672 [details] SWT snippet demonstrating the issue See the attached modified Snippet220. It draws a rectangle with red borders and filled with the background color to the right of each tree item. When active, the selected item is highlighted with a light blue background, but the rectangle is dark blue. When inactive, the selected item has a gray background, but the rectangle is drawn in a lighter shade of gray. Using SWT org.eclipse.swt.win32.win32.x86_64_3.116.100.v20210602-2209.jar .
The light blue for the active selection is RGB(204, 232, 255). The dark blue from event.gc.getBackground() is RGBA(0, 120, 215, 255). Alpha blending this with alpha 0.2 against white gives RGB(204, 228, 247), which is pretty close...
Trying the same within Eclipse, I notice that this selected background color also remains the same dark blue in Eclipse's dark mode, even though there the selection color is a dark gray. Compare bug 574484.