Community
Participate
Working Groups
Bugzilla – Bug 65000
[Eclipse Forms] Trees/tables in forms missing borders on Motif
Last modified: 2004-06-16 11:28:33 EDT
The list items in the manifest editor on MOTIF seem to be without borders. See attachment
Created attachment 11372 [details] dependancies page
The culprit is the code that computes flat border RGB: if (isWhiteBackground()) border = getColor(BORDER); else border = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND); This code works well when form background is lighter than widget background. However, on Motif form and widget backgrounds are the same, so borders are painted but cannot be seen. The proposed fix is to test for this and use SWT.COLOR_WIDGET_DARK_SHADOW in case widget and form backgrounds are the same. I tested this on Motif and it looks very good (dark gray border on gray background). This will also hold when colors are changed i.e. border will always be of the same shade as the background, just darker. Michael, I propose this for RC3 - please vote if you agree.
Raising priority because this affects ALL trees and tables in all forms on Motif.
The last two comments are really by me - I made them from a Motif machine previously used by Wassim :-).
Fixed and released.