W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Widget Icon behaviour...

From: Jochen Cichon <jc@vfnet.de>
Date: Wed, 17 Sep 2008 13:02:58 +0200
Message-ID: <48D0E3E2.609@vfnet.de>
To: public-webapps@w3.org


short question on the icons, inside the config.xml.
(I know, that part is not yet written)

It is possible to store more than one icon, but which icon is used?

My thought was to have several icons in different sizes, or even an SVG 
icon (which is not a must for the widget UserAgent).

Currently I'm unsure which icon is used, because the widget UA does 
understand gif, png and jpeg (maybe others).

Given the following example (e.g. small is 32x32, large is 64x64, huge 
is 128x128pixel. And svg is ... scaleable ;)

<widget ..>
   <icon src="icon.svg"/>
   <icon src="small_icon.png"/>
   <icon src="small_icon.gif"/>
   <icon src="large_icon.jpg"/>
   <icon src="huge_icon.jpg"/>

So for my point of view, the UA will need to find the size of an icon by 
reading the header or even the full image, or in the case of an svg say 
that it will scale to any resolution.

But then the question which icon will have precedence?
Also from my point of view, the first icon will be used.
So in the example above the PNG may look better than the GIF. (example)

Jochen Cichon
Received on Wednesday, 17 September 2008 11:38:00 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:12 UTC