Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSG <who.just.the.doctor@gmail.com>2021-09-20 21:39:52 +0300
committerGitHub <noreply@github.com>2021-09-20 21:39:52 +0300
commit9b0aa0d6dce38b0258409e1ba15133f01f6b2db5 (patch)
tree2bb9f91823b8dd7a427b74f9a9f09427484c517e /applications/about
parent322bdf049d5e53cdb97be4a606ab00f393b5313d (diff)
Settings: about screen (#715)
Diffstat (limited to 'applications/about')
-rw-r--r--applications/about/about.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/applications/about/about.c b/applications/about/about.c
new file mode 100644
index 00000000..96be75a1
--- /dev/null
+++ b/applications/about/about.c
@@ -0,0 +1,45 @@
+#include <furi.h>
+#include <dialogs/dialogs.h>
+
+int32_t about_settings_app(void* p) {
+ const char* first_screen_text = "Product: Flipper Zero\n"
+ "Model: FZ.1\n"
+ "FCC ID: 2A2V6-FZIC\n"
+ "ID: 27624-FZ";
+
+ const char* second_screen_text = "Flipper Devices Inc\n"
+ "Suite B #551, 2803\n"
+ "Philadelphia Pike, Claymont\n"
+ "DE, USA 19703\n";
+
+ const char* third_screen_text = "For all compliance\n"
+ "certificates please visit\n"
+ "www.flipp.dev/compliance";
+
+ DialogsApp* dialogs = furi_record_open("dialogs");
+ DialogMessage* message = dialog_message_alloc();
+
+ do {
+ dialog_message_set_buttons(message, NULL, NULL, "Next");
+
+ dialog_message_set_text(message, first_screen_text, 0, 0, AlignLeft, AlignTop);
+ if(dialog_message_show(dialogs, message) != DialogMessageButtonRight) break;
+
+ dialog_message_set_text(message, second_screen_text, 0, 0, AlignLeft, AlignTop);
+ if(dialog_message_show(dialogs, message) != DialogMessageButtonRight) break;
+
+ dialog_message_set_text(message, third_screen_text, 0, 0, AlignLeft, AlignTop);
+ if(dialog_message_show(dialogs, message) != DialogMessageButtonRight) break;
+
+ dialog_message_set_text(message, NULL, 0, 0, AlignLeft, AlignTop);
+
+ dialog_message_set_icon(message, &I_Certification_128x64, 0, 0);
+ dialog_message_set_buttons(message, NULL, NULL, NULL);
+ dialog_message_show(dialogs, message);
+ } while(false);
+
+ dialog_message_free(message);
+ furi_record_close("dialogs");
+
+ return 0;
+} \ No newline at end of file