mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 02:41:36 +03:00
fae8d8f23c
* Gui: code input module * Gui: fix size to fit frame * Desktop: PIN config and lock option * Gui: code input: cleanup, offset input fields if no header present * Desktop: move code unlock to desktop_locked scene * Desktop: fix unlock with back key * Desktop: bump settings version * Desktop: correct scene usage. Co-authored-by: あく <alleteam@gmail.com>
38 lines
732 B
C
38 lines
732 B
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
#include <gui/gui.h>
|
|
#include <gui/view.h>
|
|
#include <gui/view_dispatcher.h>
|
|
#include <gui/scene_manager.h>
|
|
#include <gui/modules/submenu.h>
|
|
#include <gui/modules/code_input.h>
|
|
|
|
#include "desktop_settings.h"
|
|
|
|
#include "scenes/desktop_settings_scene.h"
|
|
|
|
typedef enum {
|
|
CodeEventsSetPin,
|
|
CodeEventsChangePin,
|
|
CodeEventsDisablePin,
|
|
} CodeEventsEnum;
|
|
|
|
typedef enum {
|
|
DesktopSettingsAppViewMenu,
|
|
DesktopSettingsAppViewPincodeInput,
|
|
} DesktopSettingsAppView;
|
|
|
|
typedef struct {
|
|
DesktopSettings settings;
|
|
|
|
Gui* gui;
|
|
SceneManager* scene_manager;
|
|
ViewDispatcher* view_dispatcher;
|
|
Submenu* submenu;
|
|
CodeInput* code_input;
|
|
|
|
uint8_t menu_idx;
|
|
|
|
} DesktopSettingsApp;
|