Hi Rob,
thank you for your answer but that's not what I meant. I'll try to clarify:
We want to provide two independent themes in our app and we want to switch all
icons used depending on the theme the user selected.
This works like a charm with the framework provided icon libraries Tango and
Oxygen, I can simple use different theme meta tags:
qx.Theme.define("myapp.theme.color.Theme",
{
meta :
{
...
icon : qx.theme.icon.Tango
}
});
And:
qx.Theme.define("myapp.theme.greyscale.Theme",
{
meta :
{
...
icon : qx.theme.icon.Oxygen
}
});
Depending on this setting qooxdoo use the specified icon library.
So is there a way to use the same mechanism for custom resources?
For example if we have the colored icon in
"myapp/source/resource/icon/color/test.png" and the greyscale one in
"myapp/source/resource/icon/greyscale/test.png".
Best Regards,
Andreas
Von: Robert Nimax [mailto:[email protected]]
Gesendet: Dienstag, 25. September 2012 13:07
An: 'qooxdoo Development'
Betreff: Re: [qooxdoo-devel] dynamic icons
Hi,
you could use the theming mechanism to switch an icon depending on a status.
Appearance:
"specialImage":
{
include: "image",
style : function(states)
{
var iconSource = states.active ? "..active.png" : "..inactive.png";
return {
source: iconSource
}
}
},
Implementation:
theImage.addState("active");
HTH,
Rob.
Von: Andreas Fink [mailto:[email protected]]
Gesendet: Dienstag, 25. September 2012 11:46
An: Robert Nimax; 'qooxdoo Development ([email protected])'
Betreff: [qooxdoo-devel] dynamic icons
Hi all,
the framework provides an easy way to switch the icon library between oxygen
and tango.
Is there way to do the same with custom icon libraries?
For example, we want to provide two themes in our app a "colored" one and a
one in "black and white".
Therefore we want to switch the icons as well between color and grayscale.
Regards,
Andreas
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel