Is there an easy way to use different source images with client bundle for 
different permutations without creating a different implementations and 
adding a deferred binding property to my gwt.xml?

For example, I would like to use SVG images for a lot of my icons, but IE8 
and below would need a jpg or png as there is no SVG support. As far as I'm 
aware, the only way to do this is have two ClientBundle implementations 
with different sources defined.

@Source("home-icon.png")
public DataResource homeIcon();

@DataResource.MimeType("image/svg+xml")
@Source("home-icon.svg")
public DataResource homeIcon();

This is ok for the few amount of icons my application has, but it seems 
like something that could get out of hand very quickly. Especially if using 
the same technique to target Apple's "retina" displays with higher 
resolution images.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ejiwPwrTO3UJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to