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

Reply via email to