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,"&").replace(/</g,"<").replace(/>/g,">") >> + >> + "</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