From 55427d83b87960903cd6213ac9c73e694ee547bd Mon Sep 17 00:00:00 2001 From: JF Date: Mon, 19 Oct 2020 21:46:41 +0200 Subject: [WIP] Add new notification UI that use HW scrolling effects. Both notification apps are available in the menu, we can compare them. --- src/displayapp/screens/Notifications_swscroll.h | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/displayapp/screens/Notifications_swscroll.h (limited to 'src/displayapp/screens/Notifications_swscroll.h') diff --git a/src/displayapp/screens/Notifications_swscroll.h b/src/displayapp/screens/Notifications_swscroll.h new file mode 100644 index 00000000..48960797 --- /dev/null +++ b/src/displayapp/screens/Notifications_swscroll.h @@ -0,0 +1,36 @@ +#pragma once + +#include +#include "Screen.h" +#include +#include "Modal.h" +#include +#include + +namespace Pinetime { + namespace Applications { + namespace Screens { + class Notifications2 : public Screen { + public: + explicit Notifications2(DisplayApp* app); + ~Notifications2() override; + + bool Refresh() override; + bool OnButtonPushed() override; + void OnObjectEvent(lv_obj_t* obj, lv_event_t event, uint32_t buttonId); + bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override; + + private: + class ListWidget { + public: + ListWidget(); + private: + lv_obj_t* page = nullptr; + }; + + bool running = true; + ListWidget list; + }; + } + } +} -- cgit v1.2.3-70-g09d2