mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add more tooltips when hovering settings (#4213)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
db12693a27
commit
6ee7ef8cab
1 changed files with 72 additions and 32 deletions
|
@ -258,7 +258,11 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
s.enableSmoothScrollingNewMessages);
|
s.enableSmoothScrollingNewMessages);
|
||||||
layout.addCheckbox("Show input when it's empty", s.showEmptyInput, false,
|
layout.addCheckbox("Show input when it's empty", s.showEmptyInput, false,
|
||||||
"Show the chat box even when there is nothing typed.");
|
"Show the chat box even when there is nothing typed.");
|
||||||
layout.addCheckbox("Show message length while typing", s.showMessageLength);
|
layout.addCheckbox(
|
||||||
|
"Show message length while typing", s.showMessageLength, false,
|
||||||
|
"Show how many characters are currently in your input box.\n"
|
||||||
|
"Useful for making sure you don't go past the 500 character Twitch "
|
||||||
|
"limit, or a lower limit enforced by a moderation bot");
|
||||||
layout.addCheckbox(
|
layout.addCheckbox(
|
||||||
"Allow sending duplicate messages", s.allowDuplicateMessages, false,
|
"Allow sending duplicate messages", s.allowDuplicateMessages, false,
|
||||||
"Allow a single message to be repeatedly sent without any changes.");
|
"Allow a single message to be repeatedly sent without any changes.");
|
||||||
|
@ -426,17 +430,23 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
layout.addCheckbox("Hide usercard avatars",
|
layout.addCheckbox("Hide usercard avatars",
|
||||||
s.streamerModeHideUsercardAvatars, false,
|
s.streamerModeHideUsercardAvatars, false,
|
||||||
"Prevent potentially explicit avatars from showing.");
|
"Prevent potentially explicit avatars from showing.");
|
||||||
layout.addCheckbox("Hide link thumbnails",
|
layout.addCheckbox("Hide link thumbnails", s.streamerModeHideLinkThumbnails,
|
||||||
s.streamerModeHideLinkThumbnails);
|
false,
|
||||||
|
"Prevent potentially explicit thumbnails from showing "
|
||||||
|
"when hovering links.");
|
||||||
layout.addCheckbox(
|
layout.addCheckbox(
|
||||||
"Hide viewer count and stream length while hovering over split header",
|
"Hide viewer count and stream length while hovering over split header",
|
||||||
s.streamerModeHideViewerCountAndDuration);
|
s.streamerModeHideViewerCountAndDuration);
|
||||||
layout.addCheckbox("Hide moderation actions", s.streamerModeHideModActions);
|
layout.addCheckbox("Hide moderation actions", s.streamerModeHideModActions,
|
||||||
layout.addCheckbox("Mute mention sounds", s.streamerModeMuteMentions);
|
false, "Hide bans & timeouts from appearing in chat.");
|
||||||
layout.addCheckbox("Suppress Live Notifications",
|
layout.addCheckbox("Mute mention sounds", s.streamerModeMuteMentions, false,
|
||||||
s.streamerModeSuppressLiveNotifications);
|
"Mute your ping sound from playing.");
|
||||||
|
layout.addCheckbox(
|
||||||
|
"Suppress Live Notifications", s.streamerModeSuppressLiveNotifications,
|
||||||
|
false, "Hide Live notification popups from appearing. (Windows Only)");
|
||||||
layout.addCheckbox("Suppress Inline Whispers",
|
layout.addCheckbox("Suppress Inline Whispers",
|
||||||
s.streamerModeSuppressInlineWhispers);
|
s.streamerModeSuppressInlineWhispers, false,
|
||||||
|
"Hide whispers sent to you from appearing in chat.");
|
||||||
|
|
||||||
layout.addTitle("Link Previews");
|
layout.addTitle("Link Previews");
|
||||||
layout.addDescription(
|
layout.addDescription(
|
||||||
|
@ -609,10 +619,14 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
|
|
||||||
layout.addSubtitle("Chat title");
|
layout.addSubtitle("Chat title");
|
||||||
layout.addDescription("In live channels show:");
|
layout.addDescription("In live channels show:");
|
||||||
layout.addCheckbox("Uptime", s.headerUptime);
|
layout.addCheckbox("Uptime", s.headerUptime, false,
|
||||||
layout.addCheckbox("Viewer count", s.headerViewerCount);
|
"Show how long the channel has been live");
|
||||||
layout.addCheckbox("Category", s.headerGame);
|
layout.addCheckbox("Viewer count", s.headerViewerCount, false,
|
||||||
layout.addCheckbox("Title", s.headerStreamTitle);
|
"Show how many users are watching");
|
||||||
|
layout.addCheckbox("Category", s.headerGame, false,
|
||||||
|
"Show what Category the stream is listed under");
|
||||||
|
layout.addCheckbox("Title", s.headerStreamTitle, false,
|
||||||
|
"Show the stream title");
|
||||||
|
|
||||||
layout.addSubtitle("R9K");
|
layout.addSubtitle("R9K");
|
||||||
auto toggleLocalr9kSeq = getApp()->hotkeys->getDisplaySequence(
|
auto toggleLocalr9kSeq = getApp()->hotkeys->getDisplaySequence(
|
||||||
|
@ -667,16 +681,17 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
|
|
||||||
layout.addSubtitle("Visible badges");
|
layout.addSubtitle("Visible badges");
|
||||||
layout.addCheckbox("Authority", s.showBadgesGlobalAuthority, false,
|
layout.addCheckbox("Authority", s.showBadgesGlobalAuthority, false,
|
||||||
"e.g., staff, admin");
|
"e.g. staff, admin");
|
||||||
layout.addCheckbox("Predictions", s.showBadgesPredictions);
|
layout.addCheckbox("Predictions", s.showBadgesPredictions);
|
||||||
layout.addCheckbox("Channel", s.showBadgesChannelAuthority, false,
|
layout.addCheckbox("Channel", s.showBadgesChannelAuthority, false,
|
||||||
"e.g., broadcaster, moderator");
|
"e.g. broadcaster, moderator");
|
||||||
layout.addCheckbox("Subscriber ", s.showBadgesSubscription);
|
layout.addCheckbox("Subscriber ", s.showBadgesSubscription);
|
||||||
layout.addCheckbox("Vanity", s.showBadgesVanity, false,
|
layout.addCheckbox("Vanity", s.showBadgesVanity, false,
|
||||||
"e.g., prime, bits, sub gifter");
|
"e.g. prime, bits, sub gifter");
|
||||||
layout.addCheckbox("Chatterino", s.showBadgesChatterino);
|
layout.addCheckbox("Chatterino", s.showBadgesChatterino, false,
|
||||||
|
"e.g. Chatterino Supporter/Contributor/Developer");
|
||||||
layout.addCheckbox("FrankerFaceZ", s.showBadgesFfz, false,
|
layout.addCheckbox("FrankerFaceZ", s.showBadgesFfz, false,
|
||||||
"e.g., Bot, FFZ supporter, FFZ developer");
|
"e.g. Bot, FFZ supporter, FFZ developer");
|
||||||
layout.addCheckbox("7TV", s.showBadgesSevenTV, false,
|
layout.addCheckbox("7TV", s.showBadgesSevenTV, false,
|
||||||
"Badges for 7TV admins, developers, and supporters");
|
"Badges for 7TV admins, developers, and supporters");
|
||||||
layout.addSeperator();
|
layout.addSeperator();
|
||||||
|
@ -693,7 +708,9 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
s.openLinksIncognito);
|
s.openLinksIncognito);
|
||||||
}
|
}
|
||||||
|
|
||||||
layout.addCheckbox("Restart on crash", s.restartOnCrash);
|
layout.addCheckbox(
|
||||||
|
"Restart on crash", s.restartOnCrash, false,
|
||||||
|
"When possible, restart Chatterino if the program crashes");
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) && !defined(NO_QTKEYCHAIN)
|
#if defined(Q_OS_LINUX) && !defined(NO_QTKEYCHAIN)
|
||||||
if (!getPaths()->isPortable())
|
if (!getPaths()->isPortable())
|
||||||
|
@ -709,13 +726,24 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
"Show messages for timeouts, bans, and other moderator actions.");
|
"Show messages for timeouts, bans, and other moderator actions.");
|
||||||
layout.addCheckbox("Show deletions of single messages",
|
layout.addCheckbox("Show deletions of single messages",
|
||||||
s.hideDeletionActions, true);
|
s.hideDeletionActions, true);
|
||||||
layout.addCheckbox("Colorize users without color set (gray names)",
|
layout.addCheckbox(
|
||||||
s.colorizeNicknames);
|
"Colorize users without color set (gray names)", s.colorizeNicknames,
|
||||||
layout.addCheckbox("Mention users with a comma (User,)",
|
false,
|
||||||
s.mentionUsersWithComma);
|
"Grant a random color to users who never set a color for themselves");
|
||||||
layout.addCheckbox("Show joined users (< 1000 chatters)", s.showJoins);
|
layout.addCheckbox("Mention users with a comma", s.mentionUsersWithComma,
|
||||||
layout.addCheckbox("Show parted users (< 1000 chatters)", s.showParts);
|
false,
|
||||||
layout.addCheckbox("Automatically close usercard when it loses focus",
|
"When using tab-completon, if the username is at the "
|
||||||
|
"start of the message, include a comma at the end of "
|
||||||
|
"the name.\ne.g. pajl -> pajlada,");
|
||||||
|
layout.addCheckbox(
|
||||||
|
"Show joined users (< 1000 chatters)", s.showJoins, false,
|
||||||
|
"Show a Twitch system message stating what users have joined the chat, "
|
||||||
|
"only available when the chat has less than 1000 users");
|
||||||
|
layout.addCheckbox(
|
||||||
|
"Show parted users (< 1000 chatters)", s.showParts, false,
|
||||||
|
"Show a Twitch system message stating what users have left the chat, "
|
||||||
|
"only available when chat has less than 1000 users");
|
||||||
|
layout.addCheckbox("Automatically close user popup when it loses focus",
|
||||||
s.autoCloseUserPopup);
|
s.autoCloseUserPopup);
|
||||||
layout.addCheckbox(
|
layout.addCheckbox(
|
||||||
"Automatically close reply thread popup when it loses focus",
|
"Automatically close reply thread popup when it loses focus",
|
||||||
|
@ -724,8 +752,11 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
false,
|
false,
|
||||||
"Make all clickable links lowercase to deter "
|
"Make all clickable links lowercase to deter "
|
||||||
"phishing attempts.");
|
"phishing attempts.");
|
||||||
layout.addCheckbox("Bold @usernames", s.boldUsernames);
|
layout.addCheckbox("Bold @usernames", s.boldUsernames, false,
|
||||||
layout.addCheckbox("Color @usernames", s.colorUsernames);
|
"Bold @mentions to make them more noticable.");
|
||||||
|
layout.addCheckbox("Color @usernames", s.colorUsernames, false,
|
||||||
|
"If Chatterino has seen a user, highlight @mention's of "
|
||||||
|
"them with their Twitch color.");
|
||||||
layout.addCheckbox("Try to find usernames without @ prefix",
|
layout.addCheckbox("Try to find usernames without @ prefix",
|
||||||
s.findAllUsernames, false,
|
s.findAllUsernames, false,
|
||||||
"Find mentions of users in chat without the @ prefix.");
|
"Find mentions of users in chat without the @ prefix.");
|
||||||
|
@ -767,9 +798,12 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
s.prefixOnlyEmoteCompletion, false,
|
s.prefixOnlyEmoteCompletion, false,
|
||||||
"When disabled, emote tab-completion will complete based on any part "
|
"When disabled, emote tab-completion will complete based on any part "
|
||||||
"of the name."
|
"of the name."
|
||||||
"\ne.g., sheffy -> DatSheffy");
|
"\ne.g. sheffy -> DatSheffy");
|
||||||
layout.addCheckbox("Only search for username autocompletion with an @",
|
layout.addCheckbox(
|
||||||
s.userCompletionOnlyWithAt);
|
"Only search for username autocompletion with an @",
|
||||||
|
s.userCompletionOnlyWithAt, false,
|
||||||
|
"When enabled, username tab-completion will only complete when using @"
|
||||||
|
"\ne.g. pajl -> pajl | @pajl -> @pajlada");
|
||||||
|
|
||||||
layout.addCheckbox("Show Twitch whispers inline", s.inlineWhispers, false,
|
layout.addCheckbox("Show Twitch whispers inline", s.inlineWhispers, false,
|
||||||
"Show whispers as messages in all splits instead "
|
"Show whispers as messages in all splits instead "
|
||||||
|
@ -788,7 +822,10 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
s.scrollbackUsercardLimit, 100, 100000, 100);
|
s.scrollbackUsercardLimit, 100, 100000, 100);
|
||||||
|
|
||||||
layout.addCheckbox("Enable experimental IRC support (requires restart)",
|
layout.addCheckbox("Enable experimental IRC support (requires restart)",
|
||||||
s.enableExperimentalIrc);
|
s.enableExperimentalIrc, false,
|
||||||
|
"When enabled, attempting to join a channel will "
|
||||||
|
"include an \"IRC (Beta)\" tab allowing the user to "
|
||||||
|
"connect to an IRC server outside of Twitch ");
|
||||||
layout.addCheckbox("Show unhandled IRC messages",
|
layout.addCheckbox("Show unhandled IRC messages",
|
||||||
s.showUnhandledIrcMessages);
|
s.showUnhandledIrcMessages);
|
||||||
layout.addDropdown<int>(
|
layout.addDropdown<int>(
|
||||||
|
@ -806,7 +843,10 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
"message) into one cheermote.");
|
"message) into one cheermote.");
|
||||||
layout.addCheckbox("Messages in /mentions highlights tab",
|
layout.addCheckbox("Messages in /mentions highlights tab",
|
||||||
s.highlightMentions);
|
s.highlightMentions);
|
||||||
layout.addCheckbox("Strip leading mention in replies", s.stripReplyMention);
|
layout.addCheckbox("Strip leading mention in replies", s.stripReplyMention,
|
||||||
|
true,
|
||||||
|
"When disabled, messages sent in reply threads will "
|
||||||
|
"include the @mention for the related thread");
|
||||||
|
|
||||||
// Helix timegate settings
|
// Helix timegate settings
|
||||||
auto helixTimegateGetValue = [](auto val) {
|
auto helixTimegateGetValue = [](auto val) {
|
||||||
|
|
Loading…
Reference in a new issue