Files
MuditaOS/module-apps/application-settings/windows/advanced/AdvancedOptionsWindow.cpp
Lukasz Mastalerz d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00

35 lines
1.4 KiB
C++

// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "AdvancedOptionsWindow.hpp"
#include <application-settings/windows/WindowNames.hpp>
#include <status-bar/Style.hpp>
std::list<gui::Option> advancedOptions(app::ApplicationCommon *app)
{
std::list<gui::Option> 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_DEBUG("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);
addMenu("CPU Mode Test", gui::window::name::cpu_test_window);
return l;
}