mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
|
#include "browserextensionpage.hpp"
|
||
|
|
||
|
#include "util/layoutcreator.hpp"
|
||
|
|
||
|
#include <QLabel>
|
||
|
|
||
|
#define CHROME_EXTENSION_LINK \
|
||
|
"https://chrome.google.com/webstore/detail/chatterino-native-host/" \
|
||
|
"glknmaideaikkmemifbfkhnomoknepka"
|
||
|
#define FIREFOX_EXTENSION_LINK "https://addons.mozilla.org/de/firefox/addon/chatterino-native-host/"
|
||
|
|
||
|
namespace chatterino {
|
||
|
namespace widgets {
|
||
|
namespace settingspages {
|
||
|
|
||
|
BrowserExtensionPage::BrowserExtensionPage()
|
||
|
: SettingsPage("Browser Extension", "")
|
||
|
{
|
||
|
auto layout = util::LayoutCreator<BrowserExtensionPage>(this).setLayoutType<QVBoxLayout>();
|
||
|
|
||
|
auto label =
|
||
|
layout.emplace<QLabel>("The browser extension will replace the default Twitch.tv chat with "
|
||
|
"chatterino while chatterino is running.");
|
||
|
label->setWordWrap(true);
|
||
|
|
||
|
auto chrome = layout.emplace<QLabel>("<a href=\"" CHROME_EXTENSION_LINK
|
||
|
"\">Download for Google Chrome</a>");
|
||
|
chrome->setOpenExternalLinks(true);
|
||
|
auto firefox = layout.emplace<QLabel>("<a href=\"" FIREFOX_EXTENSION_LINK
|
||
|
"\">Download for Mozilla Firefox</a>");
|
||
|
firefox->setOpenExternalLinks(true);
|
||
|
layout->addStretch(1);
|
||
|
}
|
||
|
|
||
|
} // namespace settingspages
|
||
|
} // namespace widgets
|
||
|
} // namespace chatterino
|