1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-24 18:42:05 +00:00
AIO-switch-updater/source/about_tab.cpp
2021-09-11 15:48:13 +02:00

31 lines
No EOL
834 B
C++

#include "about_tab.hpp"
namespace i18n = brls::i18n;
using namespace i18n::literals;
AboutTab::AboutTab()
{
// Subtitle
brls::Label* subTitle = new brls::Label(
brls::LabelStyle::REGULAR,
"menus/about/title"_i18n,
true);
subTitle->setHorizontalAlign(NVG_ALIGN_CENTER);
this->addView(subTitle);
// Copyright
brls::Label* copyright = new brls::Label(
brls::LabelStyle::DESCRIPTION,
"menus/about/copyright"_i18n,
true);
copyright->setHorizontalAlign(NVG_ALIGN_CENTER);
this->addView(copyright);
// Links
this->addView(new brls::Header("Disclaimers"));
brls::Label* links = new brls::Label(
brls::LabelStyle::SMALL,
"menus/about/disclaimers"_i18n + "\n" + "menus/about/donate"_i18n,
true);
this->addView(links);
}