Skip to content

feat: <qr> widget — QR code generation with live binding#4

Merged
anakod merged 1 commit into
futurefrom
feature/qr-widget
May 28, 2026
Merged

feat: <qr> widget — QR code generation with live binding#4
anakod merged 1 commit into
futurefrom
feature/qr-widget

Conversation

@anakod

@anakod anakod commented May 28, 2026

Copy link
Copy Markdown
Collaborator

QR Code Widget

<qr align="center" y="70" size="220" dark="#000" light="#fff">{payload}</qr>
  • Wraps LVGL lv_qrcode
  • Live update: QR re-renders when bound state changes
  • Attributes: size, dark, light, align, x, y
  • CSS support

Includes apps_qrdemo.bax example (WiFi QR + URL QR).

Depends on: PR #3 (sdcard, same files modified)

64/64 tests pass.

New widget: <qr size="220" dark="#000" light="#fff">{payload}</qr>
- Wraps LVGL lv_qrcode
- Live update: QR re-renders when bound state changes
- Attributes: size, dark, light, align, x, y
- CSS support via .class

Modified:
- lv_conf.h — LV_USE_QRCODE 1
- ui_widget_builder.cpp — create_qr()
- ui_html.cpp — parse <qr> tag
- ui_html_internal.h — create_qr declaration
- ui_types.h — Element::Qr

Includes apps_qrdemo.bax example (WiFi QR, URL QR).
@anakod anakod merged commit 27ae670 into future May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants