Skip to content

Commit

Permalink
feat: moved to FW GUI buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
derskythe committed Sep 20, 2024
1 parent 7f35543 commit 4096b7d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 101 deletions.
59 changes: 0 additions & 59 deletions helpers/gui_top_buttons.c

This file was deleted.

35 changes: 0 additions & 35 deletions helpers/gui_top_buttons.h

This file was deleted.

2 changes: 1 addition & 1 deletion scenes/subbrute_scene_load_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void subbrute_scene_load_file_on_enter(void* context) {
}
// Ready to run!
FURI_LOG_I(TAG, "Ready to run");
res = true;
load_result = true;
}
}

Expand Down
5 changes: 2 additions & 3 deletions views/subbrute_attack_view.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "subbrute_attack_view.h"
#include "../subbrute_i.h"
#include "../helpers/gui_top_buttons.h"

#include <input/input.h>
#include <gui/elements.h>
Expand Down Expand Up @@ -310,8 +309,8 @@ void subbrute_attack_view_draw(Canvas* canvas, void* context) {
elements_button_left(canvas, "-1");
elements_button_right(canvas, "+1");
elements_button_center(canvas, "Start");
elements_button_top_left(canvas, "Save");
elements_button_top_right(canvas, "Resend");
elements_button_up(canvas, "Save");
elements_button_down(canvas, "Resend");
} else {
// canvas_draw_icon_animation
const uint8_t icon_h_offset = 0;
Expand Down
5 changes: 2 additions & 3 deletions views/subbrute_main_view.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "subbrute_main_view.h"
#include "../subbrute_i.h"
#include "../helpers/gui_top_buttons.h"

#include <input/input.h>
#include <gui/elements.h>
Expand Down Expand Up @@ -126,9 +125,9 @@ void subbrute_main_view_draw_is_byte_selected(Canvas* canvas, SubBruteMainViewMo

// Switch to another mode
if(model->two_bytes) {
elements_button_top_left(canvas, "One byte");
elements_button_up(canvas, "One byte");
} else {
elements_button_top_left(canvas, "Two bytes");
elements_button_down(canvas, "Two bytes");
}
}

Expand Down

0 comments on commit 4096b7d

Please sign in to comment.