mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
Aligned text and replaced dolphin image on emulate scene
This commit is contained in:
@@ -565,11 +565,11 @@ static void nfc_protocol_support_scene_emulate_on_enter(NfcApp* instance) {
|
|||||||
FuriString* temp_str = furi_string_alloc();
|
FuriString* temp_str = furi_string_alloc();
|
||||||
const NfcProtocol protocol = nfc_device_get_protocol(instance->nfc_device);
|
const NfcProtocol protocol = nfc_device_get_protocol(instance->nfc_device);
|
||||||
|
|
||||||
widget_add_icon_element(widget, 0, 3, &I_NFC_dolphin_emulation_47x61);
|
widget_add_icon_element(widget, 0, 3, &I_NFC_dolphin_emulation_51x64);
|
||||||
|
|
||||||
if(nfc_protocol_support_has_feature(protocol, NfcProtocolFeatureEmulateUid)) {
|
if(nfc_protocol_support_has_feature(protocol, NfcProtocolFeatureEmulateUid)) {
|
||||||
widget_add_string_element(
|
widget_add_string_element(
|
||||||
widget, 90, 13, AlignCenter, AlignTop, FontPrimary, "Emulating UID");
|
widget, 90, 28, AlignCenter, AlignCenter, FontPrimary, "Emulating UID");
|
||||||
|
|
||||||
size_t uid_len;
|
size_t uid_len;
|
||||||
const uint8_t* uid = nfc_device_get_uid(instance->nfc_device, &uid_len);
|
const uint8_t* uid = nfc_device_get_uid(instance->nfc_device, &uid_len);
|
||||||
@@ -581,7 +581,8 @@ static void nfc_protocol_support_scene_emulate_on_enter(NfcApp* instance) {
|
|||||||
furi_string_trim(temp_str);
|
furi_string_trim(temp_str);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
widget_add_string_element(widget, 90, 13, AlignCenter, AlignTop, FontPrimary, "Emulating");
|
widget_add_string_element(
|
||||||
|
widget, 90, 28, AlignCenter, AlignCenter, FontPrimary, "Emulating");
|
||||||
if(!furi_string_empty(instance->file_name)) {
|
if(!furi_string_empty(instance->file_name)) {
|
||||||
furi_string_set(temp_str, instance->file_name);
|
furi_string_set(temp_str, instance->file_name);
|
||||||
} else {
|
} else {
|
||||||
@@ -593,7 +594,7 @@ static void nfc_protocol_support_scene_emulate_on_enter(NfcApp* instance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
widget_add_text_box_element(
|
widget_add_text_box_element(
|
||||||
widget, 56, 28, 71, 25, AlignCenter, AlignTop, furi_string_get_cstr(temp_str), false);
|
widget, 56, 30, 71, 25, AlignCenter, AlignCenter, furi_string_get_cstr(temp_str), false);
|
||||||
|
|
||||||
furi_string_free(temp_str);
|
furi_string_free(temp_str);
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB |
BIN
assets/icons/NFC/NFC_dolphin_emulation_51x64.png
Normal file
BIN
assets/icons/NFC/NFC_dolphin_emulation_51x64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user