diff --git a/CHANGELOG.md b/CHANGELOG.md index 7066b0876..bf95bf198 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unversioned +- Minor: Added visual indicator to message length if over 500 characters long (#2659) - Minor: Added `is:` search filter to find messages of specific types. (#2653, #2671) - Minor: Added image links to the badge context menu. (#2667) - Minor: Added a setting to hide Twitch Predictions badges. (#2668) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index fe75ec806..b01c2910f 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -24,6 +24,7 @@ #include namespace chatterino { +const int TWITCH_MESSAGE_LIMIT = 500; SplitInput::SplitInput(Split *_chatWidget) : BaseWidget(_chatWidget) @@ -604,6 +605,14 @@ void SplitInput::editTextChanged() if (text.length() > 0 && getSettings()->showMessageLength) { labelText = QString::number(text.length()); + if (text.length() > TWITCH_MESSAGE_LIMIT) + { + this->ui_.textEditLength->setStyleSheet("color: red"); + } + else + { + this->ui_.textEditLength->setStyleSheet(""); + } } else {