is is possible to scale a lwtk application? #9
-
I'm trying out some of the examples using lua 5.4. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can scale the whole lwtk application by setting the local app = Application("example01.lua") with local app = Application("example01.lua", { scaleFactor = 3 }) or you can set this style parameter for an individual widget subtree, see the documentation for lwtk.Style. Anyway, there should be some support for hardware dependent screen scale factor, so my question is: What does print(app:getScreenScale()) give on your platform? However, if you only want to increase the font size and not the whole scale factor and not providing a totally new style there is up to now no easy solution. I will try to provide a patch for this for a better solution. |
Beta Was this translation helpful? Give feedback.
-
Update: with commit 429cfe9 you could replace local app = Application("example01.lua") with local app = Application("example01.lua", { TextSize = 20}) for overriding the |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
You can scale the whole lwtk application by setting the
scaleFactor
style parameter. This can be done by setting this style parameter somewhere in the style hierarchy. This can be done for the whole application for example in example01.lua replacewith
or you can set this style parameter for an individual widget subtree, see the documentation for lwtk.Style.
Anyway, there should be some support for hardware dependent screen scale factor, so my question is:
What does
give on your platform?
However, if you only want to increase the font size and not the whole sc…