Bug 303328 [UI] CSS styling broken in the contacts demo
The removal of the ETabFolder has resulted in a serious regression in the styling for the contacts demo; most notably that the text doesn't change, leaving the 'dark' style with black text on a slightly less black background. Angelo Zerr has looked into it and posted: I have seen problem with SWT Label and to correct the problem you must add this code at end of methode applyCSSPropertyColor of the class CSSPropertyTextSWTHandler: else if (widget instanceof Control) { ((Control) widget).setForeground(newColor); } (thanks a lot!)
bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/css2/CSSPropertyTextSWTHandler.java
}
	public void applyCSSPropertyTextTransform(Object element,
			final CSSValue value, String pseudo, CSSEngine engine)
			throws Exception {
		Widget widget = (Widget) element;
		String defaultText = (String) widget.getData(CSSSWTConstants.TEXT_KEY);
		if (element instanceof Text) {
			final Text text = (Text) widget;
			VerifyListener listener = (VerifyListener) text
					.getData("CSSModifyTextListener");
			if (hasTextTransform(value)) {
				if (listener == null) {
					
					listener = new VerifyListener() {
						public void verifyText(VerifyEvent e) {
							
							
							
							
							
						}
					};
					text.addVerifyListener(listener);
					text.setData("CSSModifyTextListener", listener);
				}
			} else {
				if (listener != null) {
					text.removeVerifyListener(listener);
					text.setData("CSSModifyTextListener", null);
				}