summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Error.cpp
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2022-08-11 11:16:57 +0300
committerJF <JF002@users.noreply.github.com>2022-09-17 21:27:32 +0200
commitb9224c1acedf911353156cf926848b90d8f165ae (patch)
tree31d6a9861d311f668a42f0c658fe33da2e0d23c7 /src/displayapp/screens/Error.cpp
parentbf90e07a28ed0cd5816d9090a172c60af6170625 (diff)
Disable value_str
value_str is a way to add text on a button without a separate label. This saves having an extra label object, but uses more memory and is removed in LVGL8
Diffstat (limited to 'src/displayapp/screens/Error.cpp')
-rw-r--r--src/displayapp/screens/Error.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/screens/Error.cpp b/src/displayapp/screens/Error.cpp
index 1f2c61d6..74f222a9 100644
--- a/src/displayapp/screens/Error.cpp
+++ b/src/displayapp/screens/Error.cpp
@@ -36,7 +36,8 @@ Error::Error(Pinetime::Applications::DisplayApp* app, System::BootErrors error)
lv_obj_set_event_cb(btnOk, ButtonEventCallback);
lv_obj_set_size(btnOk, LV_HOR_RES, 50);
lv_obj_align(btnOk, lv_scr_act(), LV_ALIGN_IN_BOTTOM_MID, 0, 0);
- lv_obj_set_style_local_value_str(btnOk, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, "Proceed");
+ lv_obj_t* lblOk = lv_label_create(btnOk, nullptr);
+ lv_label_set_text_static(lblOk, "Proceed");
lv_obj_set_style_local_bg_color(btnOk, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_ORANGE);
}