mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
added toggle for greying out historic messages (#822)
This commit is contained in:
parent
e3ada8ed2c
commit
02eeedb338
3 changed files with 6 additions and 1 deletions
|
@ -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());
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue