Hi Alex,
Here is my appearance Theme. Look at the 2 commentlines, to see what
is working and what not.
/* ************************************************************************
#asset(imcwindows/*)
************************************************************************ */
qx.Theme.define("imcwindows.theme.Appearance",
{
extend : qx.theme.modern.Appearance,
appearances :
{
"tinyinput-window" : "window",
"tinyinput-window/textfield" : "textfield",
"tinyinput-window/button" :
{
alias : "button",
include : "button",
style : function(states)
{
return {
padding: 1,
allowStretchX: false,
allowStretchY: false,
alignX: "center",
alignY: "middle"
}
}
},
"tinyinput-window/button-abort" : "tinyinput-window/button",
"tinyinput-window/button-ok" : "tinyinput-window/button",
// this works fine
"tinyinput-window/button-ok" :
{
alias : "tinyinput-window/button",
include : "tinyinput-window/button",
style : function(states)
{
return {
icon : "imcwindows/check_16.png"
}
}
},
// and this not. The image error_16.png is not loaded
"myimage" :
{
include : "image",
alias : "image",
style : function(states)
{
return {
source : "imcwindows/error_16.png"
}
}
},
"tinyinput-window/button-abort/icon" : "myimage"
}
});
Regards, Florian
2009/3/6 Alexander Back <[email protected]>:
> Hi Florian,
>
> On Friday 06 March 2009 Florian Giesen wrote:
>> at first, I wanted to write something like
>>
>> "spinner/upbutton/icon" : "path/mypic.png",
> The issue here is that "icon" needs to be a map - more precisely it needs to
> be an appearance which returns a map with correct properties.
>
>> 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
>> }
>> }
>> }
> This should work. Since the "icon" appearance is applied to an image widget
> the "source" property is valid. Does the icon of your spinner button change?
> Maybe you just picked the wrong path to your image.
>
> If that's not getting you any further feel free to post your appearance theme
> at the list. Maybe a look at the theme gets me closer to a solution for your
> issue.
>
>> As this didn't work too, I was finished with my latin ( don't take
>> this bad translation of a german saying too serious :-)
> Nice phrase. That made my day! :)
>
> 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