added toggle for greying out historic messages (#822)

This commit is contained in:
pphop 2018-10-26 00:47:52 +05:00 committed by fourtf
parent e3ada8ed2c
commit 02eeedb338
3 changed files with 6 additions and 1 deletions

View file

@ -48,6 +48,7 @@ namespace {
MessageParseArgs args;
TwitchMessageBuilder builder(channel.get(), privMsg, args);
if (getSettings()->greyOutHistoricMessages)
builder.message().flags.set(MessageFlag::Disabled);
if (!builder.isIgnored())

View file

@ -35,6 +35,8 @@ public:
Qt::VerPattern};
QStringSetting lastMessageColor = {"/appearance/messages/lastMessageColor",
""};
BoolSetting greyOutHistoricMessages = {
"/appearance/messages/greyOutHistoricMessages", true};
BoolSetting showEmptyInput = {"/appearance/showEmptyInputBox", true};
BoolSetting showMessageLength = {"/appearance/messages/showMessageLength",
false};

View file

@ -152,6 +152,8 @@ void LookPage::addMessageTab(LayoutCreator<QVBoxLayout> layout)
layout.append(this->createCheckBox(
"Alternate background", getSettings()->alternateMessageBackground));
layout.append(this->createCheckBox("Grey out historic messages",
getSettings()->greyOutHistoricMessages));
// --
layout.emplace<Line>(false);