zhongxan / emite

Automatically exported from code.google.com/p/emite
0 stars 0 forks source link

We need to be able to change the icons to transparent gifs for IE6 #289

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is an issue pretty specific to our client. They are using some citrix 
software which is causing IE6 to crash when the AlphaImageLoader transparent 
png fix is activated.

We have worked around this by overriding ClippedImageImplIE6 to disable the 
transparent png fix. This however means that all the images now have grey 
borders as IE6 doesn't handle the transparency correctly.

We would therefore like to be able to override the icons with transparent gifs 
for IE6. As this is specific to a reasonably ancient version of citrix I don't 
think it's something we would want to include in hablar. Therefore we need a 
way to be able to plug in a different set of icons, and in this case to 
override gwt's normal image handling to output gifs directly (rather that it 
converting them to transparent pngs).

I did try replacing the icon sets using <replace-with> in our gwt.xml file to 
replace the Emoticons and HablarIconsBundle with a different version. This 
worked fine in gwt development mode but threw up some deferred binding problems 
when it was being compiled properly.

Any alternative solutions would also be gratefully received!

Original issue reported on code.google.com by ashward....@gmail.com on 15 Jul 2010 at 3:42

GoogleCodeExporter commented 8 years ago

Original comment by ashward....@gmail.com on 15 Jul 2010 at 4:25

GoogleCodeExporter commented 8 years ago

Original comment by danigb on 15 Jul 2010 at 8:58

GoogleCodeExporter commented 8 years ago
Hello Ash: I've implemented a new icon system so different icon configurations 
can be selected.

You have to do two modifications in your code
1) Add the desired icon module  at your app gwt.xml module (see 
HablarHtml.gwt.xml)
2) Load the icons before create the widget (see HablarHtml.java:58)

There's one working module (HablarDefaultIcons.gwt.xml) and other one ready to 
be tweaked by you (HablarIE6GifIcons). The only thing you have to do is remove 
the pngs and add your gifs.

As always, this little bit tricky image css stuff may have strange results in 
... IE6 ... so please try to test this in your platform and if it works I'll 
finish the details and remove the old system...

Saludos
Dani

Original comment by danigb on 16 Jul 2010 at 12:24

GoogleCodeExporter commented 8 years ago
Wow! That was quick!

I'll try it out and let you how I get on.

Original comment by ashward....@gmail.com on 16 Jul 2010 at 8:47

GoogleCodeExporter commented 8 years ago

Original comment by ashward....@gmail.com on 31 Aug 2010 at 8:05