Hello Alex,

at first, I wanted to write something like

"spinner/upbutton/icon" : "path/mypic.png",

but that did not work. Then I had a look into the Appearance.js of the
modern theme and wrote

"myimage" :
{
  include : "image",

       style : function(states)
       {
               return {
                       "source" : "path/mypic.png" // just a sample
               }
       }
}

As this didn't work too, I was finished with my latin ( don't take
this bad translation of a german saying too serious :-)

Regards, Florian

P.S.: In my application I am extending the modern appearance theme.

2009/3/5 Alexander Back <[email protected]>:
> 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
>

------------------------------------------------------------------------------
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

Reply via email to