feat: include more data when copying messages as JSON (#5600)
This commit is contained in:
@@ -33,4 +33,21 @@ const QColor &MessageColor::getColor(Theme &themeManager) const
|
||||
return _default;
|
||||
}
|
||||
|
||||
QString MessageColor::toString() const
|
||||
{
|
||||
switch (this->type_)
|
||||
{
|
||||
case Type::Custom:
|
||||
return this->customColor_.name(QColor::HexArgb);
|
||||
case Type::Text:
|
||||
return QStringLiteral("Text");
|
||||
case Type::System:
|
||||
return QStringLiteral("System");
|
||||
case Type::Link:
|
||||
return QStringLiteral("Link");
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user