Community
Participate
Working Groups
In bug 402530, support for SWT color constants was added for specifying CSS colors, like this (it is translated to the color of SWT.COLOR_WIDGET_FOREGROUND): background-color: COLOR-WIDGET-FOREGROUND; Currently, using such a constant is not possible for gradient definitions. Patch upcoming.
Implementation for review: https://git.eclipse.org/r/17617
Released as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=68c6962a44c8ab7f595d9660dbf73a205004ae87 PW
Verified in the build: I20131028-2000
Looks to me that the changes in Bug 419016 did break this change. Example: if I use the following in the stylesheet, the DnD color is not set to red. .DragFeedback { background-color: SWT.COLOR_RED; }
(In reply to Lars Vogel from comment #4) > Looks to me that the changes in Bug 419016 did break this change. > > Example: if I use the following in the stylesheet, the DnD color is not set > to red. > > .DragFeedback { > background-color: SWT.COLOR_RED; > } Still works here with the changes of bug 419016, but you have to use the colors like this (remove "SWT.", replace "_" by "-"): background-color: COLOR-RED;
> Still works here with the changes of bug 419016, but you have to use the > colors like this (remove "SWT.", replace "_" by "-"): > > background-color: COLOR-RED; Yes, sorry.
Verified again in 4.4 M3
Still something is strange. In M3 (Build id: I20131030-2000) the background-color COLOR-LIST-SELECTION is not the same as under M2. M2 shows a nice orange which M2 shows white. .DragFeedback { background-color: COLOR-LIST-SELECTION; } I leave the Bug in status FIXED, but Robin you might want to check that again.
> I leave the Bug in status FIXED, but Robin you might want to check that > again. I think the switch to GTK3 is responsible for this different behavior. I created Bug 420989 for SWT.