mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
moved last message line in settings and changed defaults
This commit is contained in:
parent
4ff2de0567
commit
81ce8dcc08
3 changed files with 33 additions and 30 deletions
|
@ -70,9 +70,9 @@ public:
|
||||||
BoolSetting showLastMessageIndicator = {
|
BoolSetting showLastMessageIndicator = {
|
||||||
"/appearance/messages/showLastMessageIndicator", false};
|
"/appearance/messages/showLastMessageIndicator", false};
|
||||||
EnumSetting<Qt::BrushStyle> lastMessagePattern = {
|
EnumSetting<Qt::BrushStyle> lastMessagePattern = {
|
||||||
"/appearance/messages/lastMessagePattern", Qt::VerPattern};
|
"/appearance/messages/lastMessagePattern", Qt::SolidPattern};
|
||||||
QStringSetting lastMessageColor = {"/appearance/messages/lastMessageColor",
|
QStringSetting lastMessageColor = {"/appearance/messages/lastMessageColor",
|
||||||
""};
|
"#7f2026"};
|
||||||
BoolSetting showEmptyInput = {"/appearance/showEmptyInputBox", true};
|
BoolSetting showEmptyInput = {"/appearance/showEmptyInputBox", true};
|
||||||
BoolSetting showMessageLength = {"/appearance/messages/showMessageLength",
|
BoolSetting showMessageLength = {"/appearance/messages/showMessageLength",
|
||||||
false};
|
false};
|
||||||
|
|
|
@ -27,7 +27,7 @@ public:
|
||||||
{
|
{
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
|
|
||||||
painter.setPen(QColor("#999"));
|
painter.setPen(QColor(153, 153, 153, 153));
|
||||||
|
|
||||||
if (this->vertical_)
|
if (this->vertical_)
|
||||||
{
|
{
|
||||||
|
|
|
@ -227,33 +227,6 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
layout.addCheckbox("Separate with lines", s.separateMessages);
|
layout.addCheckbox("Separate with lines", s.separateMessages);
|
||||||
layout.addCheckbox("Alternate background color", s.alternateMessages);
|
layout.addCheckbox("Alternate background color", s.alternateMessages);
|
||||||
layout.addCheckbox("Show deleted messages", s.hideModerated, true);
|
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",
|
layout.addCheckbox("Highlight messages redeemed with Channel Points",
|
||||||
s.enableRedeemedHighlight);
|
s.enableRedeemedHighlight);
|
||||||
layout.addDropdown<QString>(
|
layout.addDropdown<QString>(
|
||||||
|
@ -283,6 +256,36 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
[](auto args) {
|
[](auto args) {
|
||||||
return fuzzyToInt(args.value, 0);
|
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.addTitle("Emotes");
|
||||||
layout.addCheckbox("Enable", s.enableEmoteImages);
|
layout.addCheckbox("Enable", s.enableEmoteImages);
|
||||||
|
|
Loading…
Reference in a new issue