mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 21:34:35 +03:00
parent
b4ccf00722
commit
87aca2874f
3
applications/external/totp/features_config.h
vendored
3
applications/external/totp/features_config.h
vendored
@ -12,3 +12,6 @@
|
||||
|
||||
// Target firmware to build for
|
||||
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_UL_XFW
|
||||
|
||||
// Max custom fonts value
|
||||
#define MAX_CUSTOM_FONTS (9)
|
@ -10,3 +10,6 @@
|
||||
#include "712serif/712serif.h"
|
||||
#include "graph35pix/graph35pix.h"
|
||||
#include "karma_future/karma_future.h"
|
||||
#include "funclimbing/funclimbing.h"
|
||||
#include "dpcomic/dpcomic.h"
|
||||
#include "pixelflag/pixelflag.h"
|
||||
|
1114
applications/external/totp/ui/fonts/dpcomic/dpcomic.c
vendored
Normal file
1114
applications/external/totp/ui/fonts/dpcomic/dpcomic.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
applications/external/totp/ui/fonts/dpcomic/dpcomic.h
vendored
Normal file
7
applications/external/totp/ui/fonts/dpcomic/dpcomic.h
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
/* GENERATED BY https://github.com/pavius/the-dot-factory */
|
||||
|
||||
#include "../font_info.h"
|
||||
|
||||
extern const FONT_INFO dPComic_18ptFontInfo;
|
1172
applications/external/totp/ui/fonts/funclimbing/funclimbing.c
vendored
Normal file
1172
applications/external/totp/ui/fonts/funclimbing/funclimbing.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
applications/external/totp/ui/fonts/funclimbing/funclimbing.h
vendored
Normal file
7
applications/external/totp/ui/fonts/funclimbing/funclimbing.h
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
/* GENERATED BY https://github.com/pavius/the-dot-factory */
|
||||
|
||||
#include "../font_info.h"
|
||||
|
||||
extern const FONT_INFO funclimbingDemo_18ptFontInfo;
|
1114
applications/external/totp/ui/fonts/pixelflag/pixelflag.c
vendored
Normal file
1114
applications/external/totp/ui/fonts/pixelflag/pixelflag.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
applications/external/totp/ui/fonts/pixelflag/pixelflag.h
vendored
Normal file
7
applications/external/totp/ui/fonts/pixelflag/pixelflag.h
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
/* GENERATED BY https://github.com/pavius/the-dot-factory */
|
||||
|
||||
#include "../font_info.h"
|
||||
|
||||
extern const FONT_INFO pixelFlag_18ptFontInfo;
|
@ -250,7 +250,7 @@ bool totp_scene_app_settings_handle_event(
|
||||
#endif
|
||||
else if(scene_state->selected_control == FontSelector) {
|
||||
totp_roll_value_uint8_t(
|
||||
&scene_state->selected_font, 1, 0, 6, RollOverflowBehaviorStop);
|
||||
&scene_state->selected_font, 1, 0, MAX_CUSTOM_FONTS, RollOverflowBehaviorStop);
|
||||
}
|
||||
break;
|
||||
case InputKeyLeft:
|
||||
@ -274,7 +274,7 @@ bool totp_scene_app_settings_handle_event(
|
||||
#endif
|
||||
else if(scene_state->selected_control == FontSelector) {
|
||||
totp_roll_value_uint8_t(
|
||||
&scene_state->selected_font, -1, 0, 6, RollOverflowBehaviorStop);
|
||||
&scene_state->selected_font, -1, 0, MAX_CUSTOM_FONTS, RollOverflowBehaviorStop);
|
||||
}
|
||||
break;
|
||||
case InputKeyOk:
|
||||
|
@ -165,6 +165,15 @@ static void draw_totp_code(Canvas* const canvas, const PluginState* const plugin
|
||||
case 6:
|
||||
current_font = &karmaFuture_14ptFontInfo;
|
||||
break;
|
||||
case 7:
|
||||
current_font = &funclimbingDemo_18ptFontInfo;
|
||||
break;
|
||||
case 8:
|
||||
current_font = &dPComic_18ptFontInfo;
|
||||
break;
|
||||
case 9:
|
||||
current_font = &pixelFlag_18ptFontInfo;
|
||||
break;
|
||||
default:
|
||||
current_font = &modeNine_15ptFontInfo;
|
||||
break;
|
||||
@ -222,6 +231,15 @@ static void on_new_token_code_generated(bool time_left, void* context) {
|
||||
case 6:
|
||||
current_font = &karmaFuture_14ptFontInfo;
|
||||
break;
|
||||
case 7:
|
||||
current_font = &funclimbingDemo_18ptFontInfo;
|
||||
break;
|
||||
case 8:
|
||||
current_font = &dPComic_18ptFontInfo;
|
||||
break;
|
||||
case 9:
|
||||
current_font = &pixelFlag_18ptFontInfo;
|
||||
break;
|
||||
default:
|
||||
current_font = &modeNine_15ptFontInfo;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user