From 33d1837f4fcab1339e48c9bb5c9fbf2dd2f3057d Mon Sep 17 00:00:00 2001 From: xHeaveny <69117321+xHeaveny@users.noreply.github.com> Date: Sun, 25 Jul 2021 16:19:01 +0200 Subject: [PATCH] Added section with helpful Chatterino-related links to the About page (#3068) Co-authored-by: pajlada --- CHANGELOG.md | 1 + src/widgets/settingspages/AboutPage.cpp | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bac7c28d6..a1fb92700 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Minor: Received Twitch messages now use the exact same timestamp (obtained from Twitch's server) for every Chatterino user instead of assuming message timestamp on client's side. (#3021) - Minor: Received IRC messages use `time` message tag for timestamp if it's available. (#3021) - Minor: Added informative messages for recent-messages API's errors. (#3029) +- Minor: Added section with helpful Chatterino-related links to the About page. (#3068) - Bugfix: Fixed "smiley" emotes being unable to be "Tabbed" with autocompletion, introduced in v2.3.3. (#3010) - Bugfix: Copy buttons in usercard now show properly in light mode (#3057) - Bugfix: Fixed comma appended to username completion when not at the beginning of the message. (#3060) diff --git a/src/widgets/settingspages/AboutPage.cpp b/src/widgets/settingspages/AboutPage.cpp index 33b38a5a2..44033ac6c 100644 --- a/src/widgets/settingspages/AboutPage.cpp +++ b/src/widgets/settingspages/AboutPage.cpp @@ -17,6 +17,11 @@ #define PIXMAP_WIDTH 500 +#define LINK_CHATTERINO_WIKI "https://wiki.chatterino.com" +#define LINK_DONATE "https://streamelements.com/fourtf/tip" +#define LINK_CHATTERINO_FEATURES "https://chatterino.com/#features" +#define LINK_CHATTERINO_DISCORD "https://discord.gg/7Y5AYhAK4z" + namespace chatterino { AboutPage::AboutPage() @@ -76,6 +81,7 @@ AboutPage::AboutPage() // } }*/ + // Version auto versionInfo = layout.emplace("Version"); { auto version = Version::instance(); @@ -96,6 +102,20 @@ AboutPage::AboutPage() Qt::LinksAccessibleByMouse); } + // About Chatterino + auto aboutChatterino = layout.emplace("About Chatterino..."); + { + auto l = aboutChatterino.emplace(); + + // clang-format off + l.emplace("Chatterino Wiki can be found here")->setOpenExternalLinks(true); + l.emplace("Support Chatterino")->setOpenExternalLinks(true); + l.emplace("All about Chatterino's features")->setOpenExternalLinks(true); + l.emplace("Join the official Chatterino Discord")->setOpenExternalLinks(true); + // clang-format on + } + + // Licenses auto licenses = layout.emplace("Open source software used..."); { @@ -129,6 +149,7 @@ AboutPage::AboutPage() ":/licenses/lrucache.txt"); } + // Attributions auto attributions = layout.emplace("Attributions..."); { auto l = attributions.emplace();