#include "browserextensionpage.hpp" #include "util/layoutcreator.hpp" #include #define CHROME_EXTENSION_LINK \ "https://chrome.google.com/webstore/detail/chatterino-native-host/" \ "glknmaideaikkmemifbfkhnomoknepka" #define FIREFOX_EXTENSION_LINK \ "https://addons.mozilla.org/en-US/firefox/addon/chatterino-native-host/" namespace chatterino { namespace widgets { namespace settingspages { BrowserExtensionPage::BrowserExtensionPage() : SettingsPage("Browser Extension", "") { auto layout = util::LayoutCreator(this).setLayoutType(); auto label = layout.emplace("The browser extension will replace the default Twitch.tv chat with " "chatterino while chatterino is running."); label->setWordWrap(true); auto chrome = layout.emplace("Download for Google Chrome"); chrome->setOpenExternalLinks(true); auto firefox = layout.emplace("Download for Mozilla Firefox"); firefox->setOpenExternalLinks(true); layout->addStretch(1); } } // namespace settingspages } // namespace widgets } // namespace chatterino