diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-08 15:15:41 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-08 23:50:05 (GMT) |
| commit | 7edefa8f75af38eaa1d79b0d3e4e56997f3f1836 (patch) | |
| tree | f2357bd78df144acf91ddc9c6f32ffa2d961c403 | |
| parent | 9ed2f18a25b531421e6e643329128968e0505124 (diff) | |
gray scale rectangle
| -rw-r--r-- | src/displayapp/screens/Motion.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/displayapp/screens/Motion.cpp b/src/displayapp/screens/Motion.cpp index d4eb90a..9100045 100644 --- a/src/displayapp/screens/Motion.cpp +++ b/src/displayapp/screens/Motion.cpp @@ -25,6 +25,14 @@ using namespace Pinetime::Applications::Screens; Motion::Motion(Pinetime::Applications::DisplayApp* app, System::SystemTask& systemTask, Controllers::MotionController& motionController, Controllers::MotorController& motorController) : Screen(app), motionController {motionController}, motorController {motorController}, systemTask {systemTask} { + { + lv_obj_t *box; + box = lv_obj_create(lv_scr_act(), nullptr); + lv_obj_set_size(box, 20, 200); + lv_obj_align(box, nullptr, LV_ALIGN_IN_LEFT_MID, 40, 0); + lv_obj_set_style_local_text_color(box, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_GRAY); + } + systemTask.PushMessage(Pinetime::System::Messages::DisableSleeping); #ifndef JUMPSCORE_NO_CHART chart = lv_chart_create(lv_scr_act(), NULL); |
