summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkieranc <kieranc@gmail.com>2022-10-06 07:24:03 +0200
committerGitHub <noreply@github.com>2022-10-06 08:24:03 +0300
commita0089e4fd021c88c6ee0d1184e0266fb1753a0ad (patch)
tree1293f91707c8c5c4bdd31608c56d6358059d4fca
parent81ad89d6bc980da20ce2f249f6d87cab3a369623 (diff)
Fix steps style button label (#1358)
-rw-r--r--src/displayapp/screens/WatchFacePineTimeStyle.cpp3
1 files changed, 2 insertions, 1 deletions
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);