aa20a78b0e
* Add bootloader versioning * Move some logic to api-hal-version * Backport to f4 * Dolphin: update version screen layout, make it more readable Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
57 lines
1.2 KiB
C
57 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <gui/canvas.h>
|
|
#include <input/input.h>
|
|
#include <furi.h>
|
|
|
|
// Idle scree
|
|
typedef enum {
|
|
DolphinViewIdleMain,
|
|
DolphinViewFirstStart,
|
|
DolphinViewIdleUp,
|
|
DolphinViewIdleDown,
|
|
DolphinViewHwMismatch,
|
|
DolphinViewLockMenu,
|
|
} DolphinViewIdle;
|
|
|
|
typedef struct {
|
|
uint32_t page;
|
|
} DolphinViewFirstStartModel;
|
|
|
|
void dolphin_view_first_start_draw(Canvas* canvas, void* model);
|
|
bool dolphin_view_first_start_input(InputEvent* event, void* context);
|
|
|
|
typedef struct {
|
|
uint32_t icounter;
|
|
uint32_t butthurt;
|
|
} DolphinViewIdleUpModel;
|
|
|
|
typedef struct {
|
|
bool show_fw_or_boot;
|
|
} DolphinViewIdleDownModel;
|
|
|
|
typedef struct {
|
|
uint8_t idx;
|
|
} DolphinViewMenuModel;
|
|
|
|
typedef struct {
|
|
Icon* animation;
|
|
uint8_t scene_num;
|
|
|
|
} DolphinViewMainModel;
|
|
|
|
void dolphin_view_idle_main_draw(Canvas* canvas, void* model);
|
|
bool dolphin_view_idle_main_input(InputEvent* event, void* context);
|
|
|
|
void dolphin_view_idle_up_draw(Canvas* canvas, void* model);
|
|
|
|
void dolphin_view_lockmenu_draw(Canvas* canvas, void* model);
|
|
|
|
void dolphin_view_idle_down_draw(Canvas* canvas, void* model);
|
|
|
|
void dolphin_view_hw_mismatch_draw(Canvas* canvas, void* model);
|
|
|
|
uint32_t dolphin_view_idle_back(void* context);
|