Hi Florian,
On Thursday 05 March 2009 Florian Giesen wrote:
> Here is the sample code:
>
> qx.Theme.define("qx.theme.modern.Appearance",
> {
> appearances :
> {
> [...],
>
> "myimage" : [...],
>
> "spinner/upbutton" : "button",
> "spinner/upbutton/icon" : "myimage",
>
> [...]
> }
> });
>
> How do I define "myimage", so that "spinner/upbutton/icon" points to
> my own image file? I played around for a while but I did not make it
> working.
First of all it is always better to extend the existing appearance theme is
you want to modify it to your needs.
What do you like to achieve here? If you write
--snip--
"spinner/upbutton/icon" : "myimage",
--snip--
in your appearance theme, than the icon of the spinner button uses the
"myimage" appearance. And this should like the other appearance entries
--snip--
"myimage" :
{
style : function(states)
{
return {
"opacity" : "0.5" // just a sample
}
}
}
--snip--
Just let me know what you are expecting and what your goals are to help me the
get an idea of your issue.
cheers,
Alex
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel