Add transparent overlay window (#4746)

This commit is contained in:
nerix
2024-10-06 12:54:24 +02:00
committed by GitHub
parent 9ba7ef324d
commit afa8067a20
40 changed files with 1464 additions and 190 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
#include "messages/MessageColor.hpp"
#include "singletons/Theme.hpp"
#include "messages/layouts/MessageLayoutContext.hpp"
namespace chatterino {
@@ -15,18 +15,18 @@ MessageColor::MessageColor(Type type)
{
}
const QColor &MessageColor::getColor(Theme &themeManager) const
const QColor &MessageColor::getColor(const MessageColors &colors) const
{
switch (this->type_)
{
case Type::Custom:
return this->customColor_;
case Type::Text:
return themeManager.messages.textColors.regular;
return colors.regularText;
case Type::System:
return themeManager.messages.textColors.system;
return colors.systemText;
case Type::Link:
return themeManager.messages.textColors.link;
return colors.linkText;
}
static QColor _default;