[FL-1905] Fix power off notification (#748)

* view dispatcher: add set view front API
* power: add power off notification
* Gui: rename ViewPort `send_to` API.
* Makefile: add blackmagick support

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
gornekich
2021-10-06 18:41:22 +03:00
committed by GitHub
parent c8b36dd406
commit 5232d5daba
12 changed files with 66 additions and 34 deletions

View File

@@ -5,6 +5,8 @@
#include <stdint.h>
#include <gui/view_dispatcher.h>
#include <gui/gui.h>
#include <gui/modules/popup.h>
#include "views/power_off.h"
#include <notification/notification-messages.h>
@@ -17,6 +19,7 @@ typedef enum {
struct Power {
ViewDispatcher* view_dispatcher;
Popup* popup;
PowerOff* power_off;
ViewPort* battery_view_port;
@@ -34,4 +37,7 @@ struct Power {
uint8_t power_off_timeout;
};
typedef enum { PowerViewOff } PowerView;
typedef enum {
PowerViewPopup,
PowerViewOff,
} PowerView;