| 30 | class SettingsApp final : public App { |
| 31 | |
| 32 | void onShow(AppContext& app, lv_obj_t* parent) override { |
| 33 | lv_obj_set_flex_flow(parent, LV_FLEX_FLOW_COLUMN); |
| 34 | lv_obj_set_style_pad_row(parent, 0, LV_STATE_DEFAULT); |
| 35 | |
| 36 | lvgl::toolbar_create(parent, app); |
| 37 | |
| 38 | auto* list = lv_list_create(parent); |
| 39 | lv_obj_set_width(list, LV_PCT(100)); |
| 40 | lv_obj_set_flex_grow(list, 1); |
| 41 | |
| 42 | auto manifests = getAppManifests(); |
| 43 | std::ranges::sort(manifests, SortAppManifestByName); |
| 44 | for (const auto& manifest: manifests) { |
| 45 | if (manifest->appCategory == Category::Settings) { |
| 46 | createWidget(manifest, list); |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | extern const AppManifest manifest = { |
nothing calls this directly
no test coverage detected