xremote_learn_view.c 772 B

123456789101112131415161718192021222324
  1. /*!
  2. * @file flipper-xremote/views/xremote_learn_view.c
  3. @license This project is released under the GNU GPLv3 License
  4. * @copyright (c) 2023 Sandro Kalatozishvili (s.kalatoz@gmail.com)
  5. *
  6. * @brief Learn new remote page view components and functionality.
  7. */
  8. #include "xremote_learn_view.h"
  9. static void xremote_learn_view_draw_callback(Canvas* canvas, void* context)
  10. {
  11. (void)context;
  12. xremote_canvas_draw_header(canvas, "Learn");
  13. canvas_set_font(canvas, FontSecondary);
  14. canvas_draw_str(canvas, 0, 70, "Coming Soon");
  15. xremote_canvas_draw_exit_footer(canvas, "Press to exit");
  16. }
  17. XRemoteView* xremote_learn_view_alloc(NotificationApp* notifications)
  18. {
  19. return xremote_view_alloc(notifications,
  20. NULL, xremote_learn_view_draw_callback);
  21. }