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
}
		} else if (widget instanceof Control) {
			color = ((Control) widget).getForeground();	
		}
		return engine.convert(color, Color.class, null);
	}
	public String retrieveCSSPropertyTextTransform(Object element,
			String pseudo, CSSEngine engine) throws Exception {
		String text = null;
		Widget widget = (Widget) element;
		
		
		
		
		if (widget instanceof Label) {
			text = ((Label) element).getText();
			if (text != null)
				widget.setData(CSSSWTConstants.TEXT_KEY, text);
		} else {
			if (widget instanceof Button) {
				text = ((Button) element).getText();
				if (text != null)
					widget.setData(CSSSWTConstants.TEXT_KEY, text);
			}
		}
		
		return "none";
	}
}