diff options
Diffstat (limited to 'src/displayapp/screens/Motion.h')
| -rw-r--r-- | src/displayapp/screens/Motion.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/displayapp/screens/Motion.h b/src/displayapp/screens/Motion.h index e4cbe483..e13e068c 100644 --- a/src/displayapp/screens/Motion.h +++ b/src/displayapp/screens/Motion.h @@ -6,6 +6,8 @@ #include <lvgl/src/lv_core/lv_style.h> #include <lvgl/src/lv_core/lv_obj.h> #include <components/motion/MotionController.h> +#include "displayapp/Controllers.h" +#include "displayapp/apps/Apps.h" namespace Pinetime { namespace Applications { @@ -30,5 +32,15 @@ namespace Pinetime { lv_task_t* taskRefresh; }; } + + template <> + struct AppTraits<Apps::Motion> { + static constexpr Apps app = Apps::Motion; + static constexpr const char* icon = "M"; + + static Screens::Screen* Create(AppControllers& controllers) { + return new Screens::Motion(controllers.motionController); + }; + }; } } |
