Hi Massimo,

On Tuesday April 27 2010 11:38:14 mappopo wrote:
> Is there a smart and clean way to do that?
Yes, you can use "states" to differ from the font you want/need to set.

   "root":
     {
         style: function(states) {
             return {
                 backgroundColor: "background-application",
                 textColor: "text-label",
                 font: states.bigFont ? "custom-default" : "default"
             };
         }
     },

in application main 

--snip--
if (some condition) {
   this.getRoot().addState("bigFont");
} else {
   // if you do a full reload, I guess you do not need this line
   this.getRoot().removeState("bigFont");
}
--snip--

This way you can define two fonts. The "default" one of qx and your own 
"custom-font" which is 10 pixel bigger.
 
> this way (forcing a reload) every object shows the new font size but not
> TABLEs and TREVIRTUALs.
> How can I achieve that?
First of all: table and treevirtual share the same code base. Unfortunately 
the table is not able to use font themes internally. It does use HTML to 
render the rows.
The only way to achieve this is to use custom cellrenderer which do increase 
the font size.

Hope this helps.

cheers,
  Alex

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to