moved last message line in settings and changed defaults
This commit is contained in:
@@ -70,9 +70,9 @@ public:
|
||||
BoolSetting showLastMessageIndicator = {
|
||||
"/appearance/messages/showLastMessageIndicator", false};
|
||||
EnumSetting<Qt::BrushStyle> lastMessagePattern = {
|
||||
"/appearance/messages/lastMessagePattern", Qt::VerPattern};
|
||||
"/appearance/messages/lastMessagePattern", Qt::SolidPattern};
|
||||
QStringSetting lastMessageColor = {"/appearance/messages/lastMessageColor",
|
||||
""};
|
||||
"#7f2026"};
|
||||
BoolSetting showEmptyInput = {"/appearance/showEmptyInputBox", true};
|
||||
BoolSetting showMessageLength = {"/appearance/messages/showMessageLength",
|
||||
false};
|
||||
|
||||
@@ -27,7 +27,7 @@ public:
|
||||
{
|
||||
QPainter painter(this);
|
||||
|
||||
painter.setPen(QColor("#999"));
|
||||
painter.setPen(QColor(153, 153, 153, 153));
|
||||
|
||||
if (this->vertical_)
|
||||
{
|
||||
|
||||
@@ -227,33 +227,6 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||
layout.addCheckbox("Separate with lines", s.separateMessages);
|
||||
layout.addCheckbox("Alternate background color", s.alternateMessages);
|
||||
layout.addCheckbox("Show deleted messages", s.hideModerated, true);
|
||||
layout.addCheckbox("Show last message line", s.showLastMessageIndicator);
|
||||
layout.addDropdown<std::underlying_type<Qt::BrushStyle>::type>(
|
||||
"Last message line style", {"Dotted", "Solid"}, s.lastMessagePattern,
|
||||
[](int value) {
|
||||
switch (value)
|
||||
{
|
||||
case Qt::VerPattern:
|
||||
return 0;
|
||||
case Qt::SolidPattern:
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
},
|
||||
[](DropdownArgs args) {
|
||||
switch (args.index)
|
||||
{
|
||||
case 0:
|
||||
return Qt::VerPattern;
|
||||
case 1:
|
||||
default:
|
||||
return Qt::SolidPattern;
|
||||
}
|
||||
},
|
||||
false);
|
||||
layout.addColorButton("Last message line color",
|
||||
QColor(getSettings()->lastMessageColor.getValue()),
|
||||
getSettings()->lastMessageColor);
|
||||
layout.addCheckbox("Highlight messages redeemed with Channel Points",
|
||||
s.enableRedeemedHighlight);
|
||||
layout.addDropdown<QString>(
|
||||
@@ -283,6 +256,36 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||
[](auto args) {
|
||||
return fuzzyToInt(args.value, 0);
|
||||
});
|
||||
layout.addSeperator();
|
||||
layout.addCheckbox("Draw a line below the most recent message before "
|
||||
"switching applications.",
|
||||
s.showLastMessageIndicator);
|
||||
layout.addDropdown<std::underlying_type<Qt::BrushStyle>::type>(
|
||||
"Line style", {"Dotted", "Solid"}, s.lastMessagePattern,
|
||||
[](int value) {
|
||||
switch (value)
|
||||
{
|
||||
case Qt::VerPattern:
|
||||
return 0;
|
||||
case Qt::SolidPattern:
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
},
|
||||
[](DropdownArgs args) {
|
||||
switch (args.index)
|
||||
{
|
||||
case 0:
|
||||
return Qt::VerPattern;
|
||||
case 1:
|
||||
default:
|
||||
return Qt::SolidPattern;
|
||||
}
|
||||
},
|
||||
false);
|
||||
layout.addColorButton("Line color",
|
||||
QColor(getSettings()->lastMessageColor.getValue()),
|
||||
getSettings()->lastMessageColor);
|
||||
|
||||
layout.addTitle("Emotes");
|
||||
layout.addCheckbox("Enable", s.enableEmoteImages);
|
||||
|
||||
Reference in New Issue
Block a user