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
|
2021-09-11 14:48:13 +01:00
|
|
|
brls::Label* subTitle = new brls::Label(
|
2020-09-20 01:21:28 +01:00
|
|
|
brls::LabelStyle::REGULAR,
|
2021-09-11 14:48:13 +01:00
|
|
|
"menus/about/title"_i18n,
|
|
|
|
true);
|
2020-09-20 01:21:28 +01:00
|
|
|
subTitle->setHorizontalAlign(NVG_ALIGN_CENTER);
|
|
|
|
this->addView(subTitle);
|
|
|
|
|
|
|
|
// Copyright
|
2021-09-11 14:48:13 +01:00
|
|
|
brls::Label* copyright = new brls::Label(
|
2020-09-20 01:21:28 +01:00
|
|
|
brls::LabelStyle::DESCRIPTION,
|
2022-02-20 19:31:24 +00:00
|
|
|
"menus/about/copyright"_i18n + "\n© 2020-2022 HamletDuFromage",
|
2021-09-11 14:48:13 +01:00
|
|
|
true);
|
2020-09-20 01:21:28 +01:00
|
|
|
copyright->setHorizontalAlign(NVG_ALIGN_CENTER);
|
|
|
|
this->addView(copyright);
|
|
|
|
|
|
|
|
// Links
|
2022-06-02 17:32:52 +01:00
|
|
|
this->addView(new brls::Header("menus/about/disclaimers_title"_i18n));
|
2021-09-11 14:48:13 +01:00
|
|
|
brls::Label* links = new brls::Label(
|
2020-09-20 01:21:28 +01:00
|
|
|
brls::LabelStyle::SMALL,
|
2021-03-01 18:19:17 +00:00
|
|
|
"menus/about/disclaimers"_i18n + "\n" + "menus/about/donate"_i18n,
|
2021-09-11 14:48:13 +01:00
|
|
|
true);
|
2020-09-20 01:21:28 +01:00
|
|
|
this->addView(links);
|
2020-10-05 23:53:12 +01:00
|
|
|
}
|