Hi Greg,

have a look at the theme definition "my.theme.Appearance". Here I 
defined the key "myLabel" this is the key which the second label use. 
The appearance sets the properties "textColor" and "font" (on the label 
instance). The property "font" expected a "qx.bom.Font" instance. The 
font instance is in my example automatically created with the theme 
definition "my.theme.Font". Have a look at "myFont" here I set all 
properties for the font instance. "bold" for font weight and "size" for 
the font size.

Cheers,
Chris

Am 07.09.2010 15:01, schrieb Greg Beaver:
>   On 9/7/10 3:40 AM, Christian Hagendorn wrote:
>>    Hi Greg,
>>
>> I don't know why the textColor doesn't work in your case. Have tried it
>> in a playground example and it works for me:
>> http://tinyurl.com/397aqov
>>
>> The only problem is that you can only set a font size in pixel an not in
>> percentage.
> Hi Chris,
>
> Yes, but how do you set the font weight?  I don't see any properties
> that do it.  Which property sets font size?
>
> Thanks,
> Greg
>
>> Cheers,
>> Chris
>>
>> Am 07.09.2010 06:52, schrieb Greg Beaver:
>>>    Hi,
>>>
>>> I recently committed this godawful-looking code, and would love to be
>>> able to find a quick way to set font weight and size using appearances
>>> instead of directly using html.  I tried setting a color theme and using
>>> the textColor property of widgets, but the qx.ui.basic.Label appears to
>>> ignore this, and I didn't see any way at all to set the size of the
>>> text.  Here is the code (pasted from a diff):
>>>
>>> +      content.add(new qx.ui.basic.Label().set({
>>> +        value: "<span style=\"color: #000066;font-size:116%; font-weight: 
>>> bold;\">" +
>>> +               this.getFancyType() + "#" + this.getId() + "</span>   <b>" +
>>> +               
>>> this.getSummary().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")
>>>  +
>>> +               "</b>",
>>> +        rich: true
>>> +      }));
>>> +      header.add(new qx.ui.basic.Label().set({
>>> +        value: "<span style=\"color: 
>>> #666666;font-weight:bold;\">Submitted:</span>",
>>> +        rich: true
>>> +      }), {column: 0, row: 0});
>>> +      header.add(new qx.ui.basic.Label(this.getCreatetimestamp()), 
>>> {column: 1, row: 0});
>>> +      header.add(new qx.ui.basic.Label().set({
>>> +        value: "<span style=\"color: 
>>> #666666;font-weight:bold\">Modified:</span>",
>>> +        rich: true
>>> +      }), {column: 2, row: 0});
>>> +      header.add(new qx.ui.basic.Label(this.getCreatetimestamp()), 
>>> {column: 3, row: 0});
>>>
>>> Anything less ugly that works would be greatly appreciated
>>>
>>> Greg
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> qooxdoo-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to