From 369625f4cb117f33be83791f768f2d9a5a3d72de Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 16 May 2025 10:40:00 +0200 Subject: [PATCH] camtest: improve QR label --- .../apps/com.example.camtest/assets/camtest.py | 4 ++-- internal_filesystem/lib/mpos/ui.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal_filesystem/apps/com.example.camtest/assets/camtest.py b/internal_filesystem/apps/com.example.camtest/assets/camtest.py index 77696d29..dfc07045 100644 --- a/internal_filesystem/apps/com.example.camtest/assets/camtest.py +++ b/internal_filesystem/apps/com.example.camtest/assets/camtest.py @@ -189,8 +189,8 @@ def build_ui(): }) image.set_src(image_dsc) status_label_cont = lv.obj(appscreen) - status_label_cont.set_size(width,height) - status_label_cont.align(lv.ALIGN.LEFT_MID, 0, 0) + status_label_cont.set_size(lv.pct(66),lv.pct(60)) + status_label_cont.align(lv.ALIGN.LEFT_MID, lv.pct(5), 0) status_label_cont.set_style_bg_color(lv.color_white(), 0) status_label_cont.set_style_bg_opa(66, 0) status_label_cont.set_style_border_width(0, 0) diff --git a/internal_filesystem/lib/mpos/ui.py b/internal_filesystem/lib/mpos/ui.py index 080533d6..08d5e433 100644 --- a/internal_filesystem/lib/mpos/ui.py +++ b/internal_filesystem/lib/mpos/ui.py @@ -54,7 +54,7 @@ def open_bar(): print("opening bar...") global bar_open, show_bar_animation, hide_bar_animation, notification_bar if not bar_open: - print("not open so opening...") + #print("not open so opening...") bar_open=True hide_bar_animation.current_value = hide_bar_animation_end_value #show_bar_animation.current_value = hide_bar_animation_start_value