InfiniTime.git

commit a0089e4fd021c88c6ee0d1184e0266fb1753a0ad

Author: kieranc <kieranc@gmail.com>

Fix steps style button label (#1358)

 src/displayapp/screens/WatchFacePineTimeStyle.cpp | 3 ++-


diff --git a/src/displayapp/screens/WatchFacePineTimeStyle.cpp b/src/displayapp/screens/WatchFacePineTimeStyle.cpp
index 2acd3f7ecad1a93dfb6aa3f03d9cec72e9c3c12e..9ccb2e72a8e6c8716a501e8623d3f8866cc72639 100644
--- a/src/displayapp/screens/WatchFacePineTimeStyle.cpp
+++ b/src/displayapp/screens/WatchFacePineTimeStyle.cpp
@@ -327,7 +327,8 @@   btnSteps->user_data = this;
   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);