mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 05:38:35 -07:00
MNTM: Add flipper Shell Color spoofing support
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user