App and Service improvements (#106)

This commit is contained in:
Ken Van Hoeylandt
2024-12-05 22:46:27 +01:00
committed by GitHub
parent e86a11b7e2
commit 50ee77d572
69 changed files with 692 additions and 596 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
#include "lvgl.h"
#include "lvgl/Toolbar.h"
static void onShow(tt::app::App& app, lv_obj_t* parent) {
lv_obj_t* toolbar = tt::lvgl::toolbar_create(parent, app);
static void onShow(tt::app::AppContext& context, lv_obj_t* parent) {
lv_obj_t* toolbar = tt::lvgl::toolbar_create(parent, context);
lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0);
lv_obj_t* label = lv_label_create(parent);
@@ -10,7 +10,7 @@ static void onShow(tt::app::App& app, lv_obj_t* parent) {
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
}
extern const tt::app::Manifest hello_world_app = {
extern const tt::app::AppManifest hello_world_app = {
.id = "HelloWorld",
.name = "Hello World",
.onShow = onShow,