Community
Participate
Working Groups
For styling eclipse SWT clients with our corporate design, we need an extension of the dynamic CSS functionality for ToolItems: Please support these states for ToolItems: normal selected hover pressed disabled (not dynamic yet) And these attributes: color, background-color
SWT has been moved to github. Please open as issue in https://github.com/eclipse-platform/eclipse.platform.swt
Wiebke, can you upload an example demonstrating the toolitems you want to style?
Yes, will do so after lunch! Currently in sprint planning...
Created attachment 288332 [details] Dynamic CSS example with buttons and tool items This is an extended version of the CSS Buttons example. The last group contains a Toolbar with the various states. You can style the Toolbar (hover works, disabled is ignored, others do not make sense for it) - uncomment ToolBar groups in .css file to observe... But ToolItems themselves do not support any CSS styling. (The only property in the CSS spy is swt-lines-visible. Any entries in the css file are ignored.
(In reply to Sravan Kumar Lakkimsetti from comment #1) > SWT has been moved to github. Please open as issue in > https://github.com/eclipse-platform/eclipse.platform.swt This is kind of a child of https://bugs.eclipse.org/bugs/show_bug.cgi?id=577493 which was created months ago in this bug tracker. So I'd like to keep them here together. Will enter issues in github in the future.
ToolItems can have different icons assigned to them dependings on the state: ToolItem item = new ToolItem (bar, 0); item.setImage (image); item.setDisabledImage (disabledImage); item.setHotImage (hotImage); As color and background canot be set add the moment, maybe you can use images for the ToolItems. Lets discuss tomorrow.
Other ToolItems in our client are added via fragments as DirectToolItem. Only a single (transparent) image is set in the fragment, and the hover/selected effect is applied without having hot or disabled images.