[FL-1371][FL-1502] Lfrfid app: fixes. (#555)

* Gui module byte-input: changed api
* Gui: changed font height in multiline text according to guideline
* Apps lrfid, nfc: changed send and receive icon
* App lfrfid: fix text, fix scene switсh
* Elements: multiline text framed, fix paddings
* Gui: remove duplicate definition of elements_multiline_text_framed
* App NFC: update byte_input callback signature
* App subghz: fix text lines in capture scene
* App subghz: position of the text is aligned with the guidelines and other scenes
* App subghz: removed mockup

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
SG
2021-07-05 02:01:16 +10:00
committed by GitHub
parent f82a4a2260
commit 7734fb4018
33 changed files with 725 additions and 726 deletions

View File

@@ -397,7 +397,7 @@ static void byte_input_dec_selected_byte(ByteInputModel* model) {
*/
static void byte_input_call_input_callback(ByteInputModel* model) {
if(model->input_callback != NULL) {
model->input_callback(model->callback_context, model->bytes, model->bytes_count);
model->input_callback(model->callback_context);
}
}
@@ -408,7 +408,7 @@ static void byte_input_call_input_callback(ByteInputModel* model) {
*/
static void byte_input_call_changed_callback(ByteInputModel* model) {
if(model->changed_callback != NULL) {
model->changed_callback(model->callback_context, model->bytes, model->bytes_count);
model->changed_callback(model->callback_context);
}
}

View File

@@ -15,13 +15,13 @@ typedef struct ByteInput ByteInput;
* @brief callback that is executed on save button press
*
*/
typedef void (*ByteInputCallback)(void* context, uint8_t* bytes, uint8_t bytes_count);
typedef void (*ByteInputCallback)(void* context);
/**
* @brief callback that is executed when byte buffer is changed
*
*/
typedef void (*ByteChangedCallback)(void* context, uint8_t* bytes, uint8_t bytes_count);
typedef void (*ByteChangedCallback)(void* context);
/**
* @brief Allocate and initialize byte input. This byte input is used to enter bytes.