Hey, a shadow is basically a second decorator behind the original decorator. This means the usage of a shadow element will force the creation of another div element which is why I would prefer to use the decorator property if possible. But this is only possible if you can combine all the decoration elements in one decorator object. As you spoke of a glow effect, you either have the chance to use an image based effect or a CSS3 effect. If you want to have it the same for all browsers, you would need to go with the image based solution. Using that, I would suggest to add a decorator which defines the non glowing look e.g. by a border or anything else. That would be the decorator. The glow should then be the shadow element. The CSS solution make it a bit easier. Just add a box shadow to your decorator and your good. From a performance point of view, the CSS solution should be preferred because in total using a border image decorator, which will be needed for such a glow effect, adds another 9 divs to the DOM. Regards, Martin
Am 25.07.2012 um 15:20 schrieb Dietrich Streifert: > Hello everybody, > > I'm currently fighting with decorators and shadows for my theme which is > derived from the contrib Aristo theme. > > After declaring some decorators and shadows: apart from being assigned > to different attributes of qx.ui.core.Widget: what is the intention of > having a decorator and a shadow attribute? > > I accidently assigned a decorator based on > qx.ui.decoration.MSingleBorder and qx.ui.decoration.MBorderRadius to the > shadow attribute of a textfield which seems to work (kind of). > > In the end I want to create a decorator (wether later assigned to > attribute decorator or shadow) which creates a focus effect on > textfields and comboboxes as chrome does with an additional "glow" (or > coloured shadow) arround the widget. > > Would it be best to incorporate the glow effect in the decorator used > for the "decorator attribute" or use the "shadow attribute" with a > separate decorator? > > Thank you for your help. > > Best regards. > Dietrich. > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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
