forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show hidden file setting, about screen, cleanup
- Loading branch information
Showing
12 changed files
with
157 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include <furi.h> | ||
|
||
#include <gui/view_dispatcher.h> | ||
#include <gui/scene_manager.h> | ||
#include <flipper_application/flipper_application.h> | ||
|
||
#include "quac.h" | ||
#include "scenes.h" | ||
#include "scene_about.h" | ||
#include "../actions/action.h" | ||
#include "quac_icons.h" | ||
|
||
enum { | ||
SceneActionRenameEvent, | ||
}; | ||
|
||
void scene_about_callback(void* context) { | ||
App* app = context; | ||
view_dispatcher_send_custom_event(app->view_dispatcher, SceneActionRenameEvent); | ||
} | ||
|
||
void scene_about_on_enter(void* context) { | ||
App* app = context; | ||
|
||
Popup* popup = app->popup; | ||
popup_set_header(popup, QUAC_NAME, 68, 1, AlignCenter, AlignTop); | ||
popup_set_text(popup, QUAC_ABOUT, 0, 15, AlignLeft, AlignTop); | ||
popup_set_icon(popup, 38, 0, &I_quac); | ||
view_dispatcher_switch_to_view(app->view_dispatcher, QView_Popup); | ||
} | ||
|
||
bool scene_about_on_event(void* context, SceneManagerEvent event) { | ||
UNUSED(context); | ||
UNUSED(event); | ||
return false; | ||
} | ||
|
||
void scene_about_on_exit(void* context) { | ||
App* app = context; | ||
popup_reset(app->popup); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <gui/scene_manager.h> | ||
|
||
// For each scene, implement handler callbacks | ||
void scene_about_on_enter(void* context); | ||
bool scene_about_on_event(void* context, SceneManagerEvent event); | ||
void scene_about_on_exit(void* context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.