mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #935 from apa420/apa-red-timeoutmessages
Option to disable the red stripes on greyed out messages
This commit is contained in:
commit
11a6345247
3 changed files with 9 additions and 3 deletions
|
@ -200,10 +200,14 @@ void MessageLayout::paint(QPainter &painter, int width, int y, int messageIndex,
|
|||
app->themes->messages.disabled);
|
||||
// painter.fillRect(0, y, pixmap->width(), pixmap->height(),
|
||||
// QBrush(QColor(64, 64, 64, 64)));
|
||||
|
||||
if (getSettings()->redDisabledMessages)
|
||||
{
|
||||
painter.fillRect(0, y, pixmap->width(), pixmap->height(),
|
||||
QBrush(QColor(255, 0, 0, 63), Qt::BDiagPattern));
|
||||
// app->themes->messages.disabled);
|
||||
}
|
||||
}
|
||||
|
||||
// draw selection
|
||||
if (!selection.isEmpty())
|
||||
|
|
|
@ -65,6 +65,7 @@ public:
|
|||
BoolSetting headerUptime = {"/appearance/splitheader/showUptime", false};
|
||||
FloatSetting customThemeMultiplier = {"/appearance/customThemeMultiplier",
|
||||
-0.5f};
|
||||
BoolSetting redDisabledMessages = {"/appearance/redStripes", true};
|
||||
// BoolSetting useCustomWindowFrame = {"/appearance/useCustomWindowFrame",
|
||||
// false};
|
||||
|
||||
|
|
|
@ -264,6 +264,7 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
layout.addTitle2("Misc");
|
||||
layout.addCheckbox("Show twitch whispers inline", s.inlineWhispers);
|
||||
layout.addCheckbox("Grey out historic messages", s.greyOutHistoricMessages);
|
||||
layout.addCheckbox("Emphasize deleted messages", s.redDisabledMessages);
|
||||
|
||||
/*
|
||||
layout.addTitle2("Cache");
|
||||
|
|
Loading…
Reference in a new issue