|
|
|
|
|
|
|
Re: Change Icon of checkable Table [message #1062211 is a reply to message #1062196] |
Thu, 06 June 2013 10:18  |
Eclipse User |
|
|
|
Answering myself after some googling:
- the extension point is already defined in the default RAP project's plugin.xml:
<extension point="org.eclipse.rap.ui.themes">
<themeContribution file="theme/application.css" themeId="org.eclipse.scout.rt.ui.rap.theme"/>
</extension>
- the name of the CSS element to use can be found in the RAP default CSS (which is more complete than the two CSS files linked to in this post)
for the tri-state icon it is Button-CheckIcon:selected:grayed
- the file theme/application.css already exists and is empty, adding the following block supplied my icon:
Button-CheckIcon:selected:grayed {
background-image: url( theme/img/button/check-grayed.png );
}
- I had to create the directories img/button below the already existing directory theme
I had first tried to place the image into the "web-resources" directory whose contents can be accessed using localhost:8082/res/... but that did not work for the images referred to in the css file (obviously with url( res/...png))
Anyway, my problem is solved, I hope my summary helps others who want to try similar things. I'll update the complete RAP solution to my Tri-state checkbox thread next week.
|
|
|
Powered by
FUDForum. Page generated in 0.26359 seconds