Skip to content

Commit

Permalink
Upd app.fam, fix cross-FW icon compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyweiss committed Apr 29, 2024
1 parent ab15432 commit 91483ab
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ App(
fap_category="GPIO",
fap_icon_assets="icons",
fap_icon_assets_symbol="mag",
fap_version=(0, 5), # major, minor
fap_description="WIP MagSpoof port using the RFID subsystem",
fap_version=(0, 7), # major, minor
fap_description="Enables wireless transmission of magstripe data",
fap_author="Zachary Weiss",
fap_weburl="https://github.com/zacharyweiss/magspoof_flipper",
)
8 changes: 4 additions & 4 deletions helpers/mag_text_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ static void mag_text_input_view_draw_callback(Canvas* canvas, void* _model) {
canvas,
keyboard_origin_x + keys[column].x,
keyboard_origin_y + keys[column].y,
&I_KeySaveSelected_22x11);
&I_KeySaveSelected_24x11);
} else {
canvas_draw_icon(
canvas,
keyboard_origin_x + keys[column].x,
keyboard_origin_y + keys[column].y,
&I_KeySave_22x11);
&I_KeySave_24x11);
}
} else if(keys[column].text == BACKSPACE_KEY) {
canvas_set_color(canvas, ColorBlack);
Expand All @@ -218,13 +218,13 @@ static void mag_text_input_view_draw_callback(Canvas* canvas, void* _model) {
canvas,
keyboard_origin_x + keys[column].x,
keyboard_origin_y + keys[column].y,
&I_KeyBackspaceSelected_17x11);
&I_KeyBackspaceSelected_16x9);
} else {
canvas_draw_icon(
canvas,
keyboard_origin_x + keys[column].x,
keyboard_origin_y + keys[column].y,
&I_KeyBackspace_17x11);
&I_KeyBackspace_16x9);
}
} else {
if(model->selected_row == row && model->selected_column == column) {
Expand Down
1 change: 1 addition & 0 deletions helpers/mag_text_input.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <gui/view.h>
#include "mag_icons.h"
// #include "mag_validators.h"

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion helpers/mag_types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define MAG_VERSION_APP "0.07"
#define MAG_VERSION_APP FAP_VERSION
#define MAG_DEVELOPER "Zachary Weiss"
#define MAG_GITHUB "github.com/zacharyweiss/magspoof_flipper"

Expand Down
2 changes: 1 addition & 1 deletion scenes/mag_scene_delete_success.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ void mag_scene_delete_success_on_enter(void* context) {
Mag* mag = context;
Popup* popup = mag->popup;

popup_set_icon(popup, 0, 2, &I_DolphinMafia_119x62);
popup_set_icon(popup, 0, 2, &I_DolphinMafia_115x62);
popup_set_header(popup, "Deleted", 83, 19, AlignLeft, AlignBottom);

popup_set_callback(popup, mag_popup_timeout_callback);
Expand Down
2 changes: 1 addition & 1 deletion scenes/mag_scene_save_success.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void mag_scene_save_success_on_enter(void* context) {
//scene_manager_set_scene_state(mag->scene_manager, LfRfidSceneSaveData, 0);
mag_text_store_clear(mag);

popup_set_icon(popup, 36, 5, &I_DolphinDone_80x58);
popup_set_icon(popup, 36, 5, &I_DolphinNice_96x59);
popup_set_header(popup, "Saved!", 5, 7, AlignLeft, AlignTop);
popup_set_context(popup, mag);
popup_set_callback(popup, mag_popup_timeout_callback);
Expand Down

0 comments on commit 91483ab

Please sign in to comment.