Hmm, that's a bit of a bummer that the system can't be asked to recalculate and repaint the GUI. Luckily I only need 2, maybe 3 different sizes.
The purpose is that the app would display some data that should be visible from far away (hopefully on big and full HD screens), but should also be able to fit it inside smaller resolutions eg. laptops. So if I display a 36px font on my 1280 wide laptop screen, that would look stupidly small on FullHD -- where of course a (1920/1280)*36 = 54px font would be more appropriate. Do you think that by using two themes (modifying the "background" one and then switching to it, that kinda reminds me of double buffering's page flipping :) ) could allow me to use more than two font size sets? On 10/17/2012 08:05 AM, Martin Wittemann wrote: > 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 > ------------------------------------------------------------------------------ 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
