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
Widget widget = SWTElementHelpers.getWidget(element);
		if (widget != null) {
			super.applyCSSProperty(widget, property, value, pseudo, engine);
			return true;
		}
		return false;
	}
	public String retrieveCSSProperty(Object element, String property,
			String pseudo, CSSEngine engine) throws Exception {
		Widget widget = SWTElementHelpers.getWidget(element);
		if (widget != null) {
			return super.retrieveCSSProperty(widget, property, pseudo, engine);
		}
		return null;
	}
	public void applyCSSPropertyColor(Object element, CSSValue value,
			String pseudo, CSSEngine engine) throws Exception {
		Widget widget = (Widget) element;
		if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) {
			Color newColor = (Color) engine.convert(value, Color.class, widget
					.getDisplay());
			if (widget instanceof CTabItem) {
				CTabFolder folder = ((CTabItem) widget).getParent();
				if ("selected".equals(pseudo)) {
					folder.setSelectionForeground(newColor);
				} else {
					folder.setForeground(newColor);
				}
			}
		}