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
}
			String oldText = text.getText();
			String newText = getTextTransform(text.getText(), value,
					defaultText);
			if (!oldText.equals(newText))
				text.setText(newText);
		}
		if (element instanceof Label) {
			Label label = (Label) element;
			label
					.setText(getTextTransform(label.getText(), value,
							defaultText));
			return;
		}
		if (element instanceof Button) {
			Button button = (Button) element;
			button.setText(getTextTransform(button.getText(), value,
					defaultText));
			return;
		}
	}
	public String retrieveCSSPropertyColor(Object element, String pseudo,
			CSSEngine engine) throws Exception {
		Widget widget = (Widget) element;
		Color color = null;
		if (widget instanceof CTabItem) {
			if ("selected".equals(pseudo)) {
				color = ((CTabItem) widget).getParent().getSelectionForeground();	
			} else {
				color = ((CTabItem) widget).getParent().getForeground();