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
+2 -1
View File
@@ -48,7 +48,8 @@ namespace {
MessageParseArgs args;
TwitchMessageBuilder builder(channel.get(), privMsg, args);
builder.message().flags.set(MessageFlag::Disabled);
if (getSettings()->greyOutHistoricMessages)
builder.message().flags.set(MessageFlag::Disabled);
if (!builder.isIgnored())
messages.push_back(builder.build());
+2
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};
+2
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);