UI Framework

Please let me know which one id you download. 

https://github.com/maciej-czekala/corona_business_app_base_template this one I just tested and all works fine. Please send me link to the project.

It was the one in the first post on this thread.

https://marketplace.coronalabs.com/corona-plugins/ui-framework

Which then links to this -

https://github.com/maciej-czekala/corona_ui_framework

I run main.lua and click on switch and get the error “Attempt to index a string value”, in function newToast main.lua:36, touchCallback

Same when I click the Flat button, also all the images are ? with a spare around.

Cheers,

Dave

Just uploaded fix. Toast  has  old syntax. Added font for icons so you can see  icons as well. Let me know if all works for you now. 

Are there any documentations for setting the default Font size?

Because my screen width and height settings are quite huge and the buttons and toasts are awfully small.

So I found out that you can include the fontSize when declaring a newButton

local btn_fill = ui.newButton({ config = { style = “raised” }, label = { text = “Start”, fontSize = 72 } })

But the Font is starting to be larger than it’s own background, do I have to always specify the height to make it work?

And somehow the “raised” style isn’t working on some of the screens like iPhone presets and Nokia

HjRCKbR.png

Hi, please try this. I just have pushed plugin update is it might be available within an hour.

local ui = require (“plugin.ui_framework”)

ui:init({

    screenScale = “manual”, – make sure to use manual screenScale.

    })

ui.screen.setScale(3) – set your device scale here. Try different values.

Hi, how do I download this plugin?