Thanks for your answers! If I get Matt's proposal working (haven't tried it
yet), then this would be suitable for me.
Have a nice weekend,
Florian
2009/10/2 Matthew Gregory
<[email protected]<matthew%[email protected]>
>
> I would say yes.
> I am guessing you have several commands and want each individual command
> to have a themed icon. In that case, you could use a theme but you would
> have to apply the icons manually.
>
> define an appearance like this:
>
> "command-icons" :
> {
> style : function()
> {
> return {
> edit : "icons/edit.png",
> save : "icons/edit.png"
> };
> }
> }
>
> then in source:
>
> var icons =
> qx.theme.manager.Appearance.getInstance().styleFrom("command-icons");
>
> var cmdEdit = new qx.ui.core.Command();
> cmdEdit.setIcon(icons.edit)
>
> var cmdSave = new qx.ui.core.Command();
> cmdSave.setIcon(icons.save)
>
> HTH
> Matt
>
> Florian Giesen wrote:
> > Hello QooXdoo Team!
> >
> > At first I have to say, that it was a good idea to enhance
> > qx.ui.core.Command! From now on I don't have to add userdata to command
> > instances to store additional data like the name or the icon :-)
> >
> > And this leads to my question: Is there a possibility to set the icon
> > and other widget related, suitable properties of qx.ui.core.Command
> > within a theme?
> >
> > Regards,
> > Florian
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry® 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/devconf
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® 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/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel