Sanne,

I was able to control the height and width via the theme (Appearance.js)
using this approach:

*Step 1* - Turn *on* image scaling. It is turned off by default ( Reference
<http://demo.qooxdoo.org/devel/apiviewer/#qx.ui.basic.Image~scale>  ) - I
added the appearance entry below to my theme's Appearance.js file. This is
essentially what you were missing :-)

"svgimage" :
    {
      include : "image",

      style : function(states)
      {
        return {
          width : 250,
          height : 150,
          scale : true
        };
      }
    },

*Step 2* - I added the asset reference to my app
@asset(qx/icon/Tango/32/status/air.svg)

*Step 3* - I set my Image object's appearance property to "svgimage" - 
      //SVG Image
      var svgimage = new qx.ui.basic.Image("icon/32/status/air.svg");
      svgimage.setAppearance("svgimage");

Now i can control the width and height from my theme

Chris




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-easily-use-a-new-icon-set-tp7586802p7586828.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to