Qrcode port (#141)

* Qrcode port

* Add cache flag

* tweaks
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-09-08 19:34:17 -04:00
1 parent 0703d74e4b
commit 976d5a3fec
42 files changed
+1608 -2087

No files matched your search

@@ -31,7 +31,12 @@ function OnUrlSet()
url = m.top.url
m.urlLabel.text = url
StartAsyncTask(GenerateQrCodeTask, { qrPoster: m.qrCode, text: url })
StartAsyncTask(GenerateQrCodeTask, {
poster: m.qrCode,
text: url,
size: m.qrCode.loadWidth,
padding: 10
})
end function
function OnAuthTokenChange()
@@ -25,11 +25,12 @@
wrap="true" width="400">
<Font role="font" uri="font:SystemFontFile" size="24" />
</Label>
<QRPoster
<Poster
id='QrCodePoster'
width='300'
height='300'
loadWidth='300'
loadHeight='300'
loadPadding='10'
translation="[50, 50]" />
<Label
id="urlLabel"