Community
Participate
Working Groups
Created attachment 90915 [details] Open Type dialog 1) go to Control Panel-Accessibilty->Display and enable high contrast mode 2) open eclipse 3) ctrl-shift-t to open the open type dialog expected result: I can read the contents of the list result: the list renders with black text on a black background. I can only read the text when I select an item.
Can reproduce in I20080226-1155. Caused by colored labels. Same bug in 3.3.x but there colored labels are off by default.
Created attachment 91209 [details] screenshot In I20080226-1155 I see a slightly different error, see screenshot. The selected element is a non-focused table viewer has foreground and background color black. This seems to work with tree viewer (screenshot shows package explorer that also uses the StyledCellLabelProvider) and seems to work for table viewers with focus. that's whats happening in StyledCellLabelProvider.paint(..): boolean applyColors = (event.detail & SWT.SELECTED) == 0 GC gc = event.gc; ... if (applyColors) { Color foreground= cell.getForeground(); if (foreground != null) { gc.setForeground(foreground); } Color background= cell.getBackground(); if (background != null) { gc.setBackground(background); } } ... textLayout= constructed text layout, only text, no styles textLayout.draw(gc, x, y); That means in the case of no selection, I don't set any colors but rely that the GC has the right colors set for the scenario (selected item/ no focus) - I that the correct assumption? - Is there a way to get the selection/non-focus colors? Moving to SWT for comments.
Windows has a bug where it doesn't draw with the selection color in high contrast mode when focus is not in the control.
Fixed > 20080429 I fixed this for custom draw table and trees. The native table has a bug that I'm going to work around (captured by bug 220646).
*** Bug 220644 has been marked as a duplicate of this bug. ***