Hi Benoit,

first there is no generic way implemented in qooxdoo right now to set 
text-transform styles through properties.

If you want to extend the framework, feel free to enhance qx.bom.Font, because 
logically this css effects text nodes like text-shadow. But you can implement 
it where you desire, but a custom decorator would not working, because the 
decorator lays behind or even parallel to the content (text). 

I would advise you to extend qx.ui.basic.Label and provide it with a new 
property, which apply-method could just sets or removes a CSS style on the 
content element of the widget. e.g. this ***NOT TESTED*** code

_applyTextTransform : function(value, old)
{
  if (value){
    this.getContentElement.setStyle("textTransform", value);
    return;
  }

  this.getContentElement.removeStyle("textTransform");
}


Mustafa Sak

Applications & Integration

1&1 Internet AG
Ernst-Frey-Straße 10
DE-76135 Karlsruhe

-----Ursprüngliche Nachricht-----
Von: benco [mailto:[email protected]] 
Gesendet: Freitag, 8. Februar 2013 10:39
An: [email protected]
Betreff: [qooxdoo-devel] textTransform : uppercase as themable property ?

Hi,

I'd like to use the css text-transform property to style a label widget. If 
it's quite easy to achieve by using directly js, I'd like to create a specific 
appearance in order to reuse it when needed.

The problem is textTransform is of course not recognised as a themable 
property. Should I then create a new decorator for that purpose ?

Best Regards,

Benoît.



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/textTransform-uppercase-as-themable-property-tp7582770.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 and get the 
hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to