Hey,
I would suggest to create as many new custom themes as you need font sizes. 
That way, you can simply set the theme and the new theme switching mechanism 
(devel only currently) could take care of all the stuff. Just extend your 
current theme and set another font theme for each theme.
Regards,
Martin

Am 16.10.2012 um 19:07 schrieb Henrik Pauli <[email protected]>:

> Hello list,
> 
> I was wondering if it's possible to change part of a theme when
> receiving an event.
> 
> In more detail: what I'm looking for is that when the window is resized,
> certain fonts (their class is defined in Font.js) should become bigger
> or smaller all over the application (it's a Standalone app).
> 
> Attaching to the resize event and getting the viewport size to calculate
> with is easy:
> 
> this.getRoot().addListener("resize", function (e) {
>  var vw = qx.bom.Viewport.getWidth();
>  var vh = qx.bom.Viewport.getHeight();
> 
>  // ...
> }, this);
> 
> However, messing with myapp.theme.Font.fonts["fontclass"].size doesn't
> seem to have an effect after the application has been rendered.  Or
> maybe I'm poking at wrong values.
> 
> Is there any way out of this without having to go over every single one
> of my widgets and setFonting them manually?
> 
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to