2020-09-20 01:21:28 +01:00
|
|
|
#include "about_tab.hpp"
|
2020-10-05 23:53:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
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,
|
2020-10-05 23:53:12 +01: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,
|
2020-10-05 23:53:12 +01:00
|
|
|
"menus/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-02-06 17:24:47 +00:00
|
|
|
"menus/Disclaimers"_i18n + "\n" + "menus/donate"_i18n,
|
2020-09-20 01:21:28 +01:00
|
|
|
true
|
|
|
|
);
|
|
|
|
this->addView(links);
|
2020-10-05 23:53:12 +01:00
|
|
|
}
|