// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "AdvancedOptionsWindow.hpp" #include #include std::list advancedOptions(app::ApplicationCommon *app) { std::list l; auto addMenu = [&l, &app](UTF8 name, const std::string &window = "") { l.emplace_back(gui::Option{name, [=](gui::Item &item) { if (window.empty()) { return false; } LOG_INFO("switching to %s page", window.c_str()); app->switchWindow(window, nullptr); return true; }, gui::option::Arrow::Enabled}); }; addMenu("Information", gui::window::name::information); addMenu("UI Test", gui::window::name::ui_test); addMenu("Color Test", gui::window::name::color_test_window); addMenu("Statusbar Image Test", gui::window::name::status_bar_img_type); addMenu("Text Image Color test", gui::window::name::text_image_color); return l; }