Hey,
ah thats right, thats the wrong element. As the decoration is only valid for
the decorator element, I don't see a way to apply the styles directly to the
content element. :(
Sorry,
Martin
Am 16.12.2011 um 14:53 schrieb John Spackman:
Hi Martin
Thanks – I've tried that and successfully written a mixin decorator but the
styles are applied to the wrong element; this is what comes out
(qx.ui.basic.Label):
<div
style="z-index: 0; position: absolute; cursor: default; left: 10px; top: 10px;
width: 84px; height: 15px;"
qxclass="qx.ui.basic.Label" qxtype="container">
<div qxselectable="off" qxtype="content"
style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
position: absolute; z-index: 10; -moz-user-select: -moz-none; font-family:
Arial, Tahoma, Verdana,& quot; Bitstream Vera Sans&quot; ,& quot;
Liberation Sans&quot;; font-size: 11px; line-height: 1.4; left: 0px; top:
0px; width: 84px; height: 15px;">This
is some text</div>
<div qxtype="decorator"
style="text-shadow: 2px 2px 3px black; font-size: 20px; position: absolute;
top: 0pt; left: 0pt; pointer-events: none; z-index: 5;"></div>
</div>
Is there a way to affect the content div?
John
From: Martin Wittemann
<[email protected]<mailto:[email protected]>>
Reply-To: qooxdoo Development
<[email protected]<mailto:[email protected]>>
Date: Fri, 16 Dec 2011 14:38:44 +0100
To: qooxdoo Development
<[email protected]<mailto:[email protected]>>
Subject: Re: [qooxdoo-devel] Theme styling the content element, e.g. text-shadow
Hey John,
I want to apply text-shadow via a theme, but AFAICT this can't be done via a
decorator – is that correct?
Yes, thats right, we don't have that feature in the framework so far.
Is there any way to do this without hard-coding the style on each widget's
contentElement?
I would suggest to write a decorator mixin. Thats not that much work and can be
used with the theme and all the infrastructure. Just take a look at the
MBorderRadius Mixin in qx.ui.decoration and see how the broder radius is
applied. Implement a method named _style<XYZ> and included that in a decorator
and thats it. At least I would do it that way for the framework. :)
Regards,
Martin
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special
Learn Windows Azure training event for developers. It will provide a great way
to learn Windows Azure and what it provides. You can attend the event by
watching it streamed LIVE online. Learn more at
http://p.sf.net/sfu/ms-windowsazure_______________________________________________
qooxdoo-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at
http://p.sf.net/sfu/ms-windowsazure_______________________________________________
qooxdoo-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel