| 37 | } |
| 38 | |
| 39 | void InstallView::createDemoTab() { |
| 40 | std::shared_ptr<ImGuiLayout> model = std::make_shared<ImGuiLayout>(); |
| 41 | std::shared_ptr<LayoutSection> section = model->addSection(Msg::NONE); |
| 42 | |
| 43 | BString name; |
| 44 | if (GlobalSettings::hasIconsFont()) { |
| 45 | name += INSTALL_DEMO_ICON; |
| 46 | name += " "; |
| 47 | } |
| 48 | name += getTranslation(Msg::INSTALLVIEW_DEMO_TITLE); |
| 49 | |
| 50 | addTab(name, name, model, [this](bool buttonPressed, BaseViewTab& tab) { |
| 51 | runApps(GlobalSettings::getDemos()); |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | void InstallView::runApps(std::vector<AppFilePtr>& apps) { |
| 56 | ImGui::PushFont(GlobalSettings::largeFont); |
nothing calls this directly
no test coverage detected