MNTM: Add flipper Shell Color spoofing support

This commit is contained in:
Willy-JL
2024-04-07 20:43:12 +01:00
parent 6fc6d50904
commit 73e8c632d7
5 changed files with 36 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <furi_hal_serial_types.h>
#include <furi_hal_version.h>
#include <toolbox/colors.h>
#include <gui/canvas.h>
@@ -89,6 +90,7 @@ typedef struct {
VgmColorMode vgm_color_mode;
Rgb565Color vgm_color_fg;
Rgb565Color vgm_color_bg;
FuriHalVersionColor spoof_color;
} MomentumSettings;
typedef struct {

View File

@@ -42,6 +42,7 @@ MomentumSettings momentum_settings = {
.vgm_color_mode = VgmColorModeDefault, // Default
.vgm_color_fg.value = 0x0000, // Default Black
.vgm_color_bg.value = 0xFC00, // Default Orange
.spoof_color = FuriHalVersionColorUnknown, // Real
};
typedef enum {
@@ -112,6 +113,7 @@ static const struct {
{setting_enum(vgm_color_mode, VgmColorModeCount)},
{setting_uint(vgm_color_fg, 0x0000, 0xFFFF)},
{setting_uint(vgm_color_bg, 0x0000, 0xFFFF)},
{setting_enum(spoof_color, FuriHalVersionColorCount)},
};
void momentum_settings_load(void) {