diff options
author | SG <who.just.the.doctor@gmail.com> | 2021-07-05 01:03:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 01:03:56 +0300 |
commit | 29da0e360c5b09695b94d9277fb54e4da9a60103 (patch) | |
tree | b57ae678c145519b43f34288f497a294a842dc1d /applications/applications.c | |
parent | 7734fb4018421c3d91013fad3b57980c3add84a0 (diff) |
[FL-1329] Settings (#563)
* Menu: secondary menu rendering
* Manu: reset window position on enter to new menu
* App-loader: settings menu
* Applications: add settings app list
* App backlight-control: all work related to turning off the display is now in the notification app
* App notification: settings save and load
* Gui: variable item list module
* App: new notification settings app
* Display: backlight is now fully serviced in the notification app
* Gui: update variable item list module documentation
Diffstat (limited to 'applications/applications.c')
-rw-r--r-- | applications/applications.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/applications/applications.c b/applications/applications.c index 0ecf2c24..79c1f352 100644 --- a/applications/applications.c +++ b/applications/applications.c @@ -13,7 +13,6 @@ int32_t menu_task(void* p); int32_t coreglitch_demo_0(void* p); int32_t u8g2_qrcode(void* p); int32_t gui_task(void* p); -int32_t backlight_control(void* p); int32_t irda(void* p); int32_t app_loader(void* p); int32_t nfc_task(void* p); @@ -49,6 +48,9 @@ void bt_cli_init(); void lfrfid_cli_init(); void ibutton_cli_init(); +// Settings +int32_t notification_app_settings(void* p); + const FlipperApplication FLIPPER_SERVICES[] = { #ifdef SRV_CLI {.app = cli_task, .name = "cli_task", .stack_size = 4096, .icon = A_Plugins_14}, @@ -67,10 +69,6 @@ const FlipperApplication FLIPPER_SERVICES[] = { #endif #ifdef SRV_GUI - {.app = backlight_control, - .name = "backlight_control", - .stack_size = 1024, - .icon = A_Plugins_14}, // TODO: fix stack size when sd api will be in separate thread {.app = gui_task, .name = "gui_task", .stack_size = 8192, .icon = A_Plugins_14}, #endif @@ -322,3 +320,16 @@ const FlipperApplication FLIPPER_SCENE_APPS[] = { const size_t FLIPPER_SCENE_APPS_COUNT = sizeof(FLIPPER_SCENE_APPS) / sizeof(FlipperApplication); #endif + +// Settings menu +const FlipperApplication FLIPPER_SETTINGS_APPS[] = { +#ifdef SRV_NOTIFICATION + {.app = notification_app_settings, + .name = "Notification", + .stack_size = 1024, + .icon = A_Plugins_14}, +#endif +}; + +const size_t FLIPPER_SETTINGS_APPS_COUNT = + sizeof(FLIPPER_SETTINGS_APPS) / sizeof(FlipperApplication); |