From 7edefa8f75af38eaa1d79b0d3e4e56997f3f1836 Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Fri, 8 Apr 2022 17:15:41 +0200 Subject: gray scale rectangle 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); -- cgit v0.10.2