xremote_custom_view.c 781 B

123456789101112131415161718192021222324
  1. /*!
  2. * @file flipper-xremote/views/xremote_custom_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 Custom layout UI and view functionality for remote buttons.
  7. */
  8. #include "xremote_custom_view.h"
  9. static void xremote_custom_view_draw_callback(Canvas* canvas, void* context)
  10. {
  11. (void)context;
  12. xremote_canvas_draw_header(canvas, "Custom");
  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_custom_view_alloc(NotificationApp* notifications)
  18. {
  19. return xremote_view_alloc(notifications,
  20. NULL, xremote_custom_view_draw_callback);
  21. }