You are setting the icon inside the constructor for your page. If you provide a custom icon in this way the icon from the theme is always ignored. Try removing the icon from the constructor and use this in your appearance:
return {"icon": states.hovered ? "common/margins-active.png" : "common/try.png"}; HTH, Matt Jean-Noël Rivasseau wrote: > Hi, > > here is the code snippet, but I do everything the normal way: > > var marginsPage = new qx.ui.tabview.Page(null, "common/try.png"); > marginsPage.setAppearance("InsidePaneTabViewPage"); > > This is the appearance: > > > "InsidePaneTabViewPage/button": > { > style: function(states) > { > return {"icon": "common/margins-active.png"}; > } > }, > > Normally, I will set a difference appearance on all TabButtons, so I can > get a different associated icons for all tabs. My use case is the > following, I want to set a tab panel, and the tabs themselves should > look as images. When one is selected, the image changes to the active one. > > Seems like a pretty common use case. I have thought of several different > ways of doing this but the one I am trying to achieve (and for which I > am posting my problem) seems the most natural one. > > Jean-Noel > > > On Thu, Oct 15, 2009 at 9:35 AM, Christian Schmidt > <schmidt.christ...@1und1.de <mailto:schmidt.christ...@1und1.de>> wrote: > > Hi Jean-Noël, > > this sounds strange. I'm not a appearance expert, but I will try to > help. > > Could you please send a code snipped how you set the appearance on the > widget? Could you also explain if all TabButtons should get the icon or > only some? > > Also, I was wondering if there was available a list of all possible > > flags for the 'states' object (per widget). It would be "very" > useful. > > Currently developers have to guess, or what?! > There is a bug report for this issue: > http://bugzilla.qooxdoo.org/show_bug.cgi?id=1470 > > Cheers, > Chris > > -- > Christian Schmidt > Software Entwickler > > 1&1 Internet AG - Web Technologies > Ernst-Frey-Straße 9 · DE-76135 Karlsruhe > schmidt.christ...@1und1.de <mailto:schmidt.christ...@1und1.de> > > Amtsgericht Montabaur / HRB 6484 > Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, > Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning > Kettler, Dr. Oliver Mauss, Jan Oetjen > Aufsichtsratsvorsitzender: Michael Scheeren > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > <mailto:qooxdoo-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel