cash2ecash

cash2ecash: cash acceptor that issues digital cash (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit bc206de4b3a99d6242cabcf01e6660ca38b13261
parent 15f62c5845247de4216800385f630f155fa7a2b3
Author: Manuel Geissbühler <manuel@debian>
Date:   Fri, 27 Dec 2024 17:48:17 +0100

testing...

Diffstat:
Msrc/gui/screenWelcomme.hpp | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gui/screenWelcomme.hpp b/src/gui/screenWelcomme.hpp @@ -2,6 +2,7 @@ #define SCREEN_WELCOME_H #include "screen.hpp" #include <cstdint> +#include <src/misc/lv_area.h> class ScreenWelcome : public Screen { private: @@ -28,7 +29,7 @@ private: lv_obj_t * btn = lv_btn_create(screenPointer); /*Add a button the current screen*/ lv_obj_set_pos(btn, 10, 10); /*Set its position*/ - lv_obj_set_size(btn, 120, 50); /*Set its size*/ + lv_obj_set_size(btn, lv_pct(20), lv_pct(20)); /*Set its size*/ lv_obj_add_event_cb(btn, this->btn_event_cb, LV_EVENT_ALL, NULL); /*Assign a callback to the button*/ lv_obj_t * label = lv_label_create(btn); /*Add a label to the button*/