Fix steps style button label (#1358)
This commit is contained in:
parent
81ad89d6bc
commit
a0089e4fd0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user