Hi Greg, that works for me in playground: --snip-- var label = new qx.ui.basic.Label().set({rich:true}); label.setValue("<b>bold</b>");
// Document is the application root var doc = this.getRoot(); // Add button to document at fixed coordinates doc.add(label, { left : 100, top : 50 }); --snip-- best regards - Claus Am Dienstag, den 07.09.2010, 08:01 -0500 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,"&").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 > -- claus straube phone +49-89-1265-3103 mobile +49-176-49673717 skype clausstraube web http://www.catify.com office room 1.122, heßstr. 89, 80797 munich ------------------------------------------------------------------------------ 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