From a0089e4fd021c88c6ee0d1184e0266fb1753a0ad Mon Sep 17 00:00:00 2001 From: kieranc Date: Thu, 6 Oct 2022 07:24:03 +0200 Subject: [PATCH] Fix steps style button label (#1358) --- src/displayapp/screens/WatchFacePineTimeStyle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/displayapp/screens/WatchFacePineTimeStyle.cpp b/src/displayapp/screens/WatchFacePineTimeStyle.cpp index 2acd3f7e..9ccb2e72 100644 --- a/src/displayapp/screens/WatchFacePineTimeStyle.cpp +++ b/src/displayapp/screens/WatchFacePineTimeStyle.cpp @@ -327,7 +327,8 @@ WatchFacePineTimeStyle::WatchFacePineTimeStyle(DisplayApp* app, lv_obj_set_size(btnSteps, 160, 60); lv_obj_align(btnSteps, lv_scr_act(), LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_local_bg_opa(btnSteps, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_50); - lv_obj_set_style_local_value_str(btnSteps, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, "Steps style"); + lv_obj_t* lblSteps = lv_label_create(btnSteps, nullptr); + lv_label_set_text_static(lblSteps, "Steps style"); lv_obj_set_event_cb(btnSteps, event_handler); lv_obj_set_hidden(btnSteps, true);