1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-09 12:01:44 +00:00
AIO-switch-updater/source/about_tab.cpp

35 lines
852 B
C++
Raw Normal View History

2020-09-20 01:21:28 +01:00
#include "about_tab.hpp"
namespace i18n = brls::i18n;
using namespace i18n::literals;
2020-09-20 01:21:28 +01:00
AboutTab::AboutTab()
{
// Subtitle
brls::Label *subTitle = new brls::Label(
brls::LabelStyle::REGULAR,
2021-03-10 20:54:17 +00:00
"menus/about/title"_i18n,
2020-09-20 01:21:28 +01:00
true
);
subTitle->setHorizontalAlign(NVG_ALIGN_CENTER);
this->addView(subTitle);
// Copyright
brls::Label *copyright = new brls::Label(
brls::LabelStyle::DESCRIPTION,
2021-03-01 18:19:17 +00:00
"menus/about/copyright"_i18n,
2020-09-20 01:21:28 +01:00
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,
2021-03-01 18:19:17 +00:00
"menus/about/disclaimers"_i18n + "\n" + "menus/about/donate"_i18n,
2020-09-20 01:21:28 +01:00
true
);
this->addView(links);
}