refactored the managers

This commit is contained in:
2017-12-31 00:50:07 +01:00
parent 258288bad9
commit bfa2f1637e
80 changed files with 1023 additions and 964 deletions
+4 -4
View File
@@ -19,17 +19,17 @@ MessageColor::Type MessageColor::getType() const
return this->type;
}
const QColor &MessageColor::getColor(ColorScheme &colorScheme) const
const QColor &MessageColor::getColor(ThemeManager &themeManager) const
{
switch (this->type) {
case Type::Custom:
return this->color;
case Type::Text:
return colorScheme.Text;
return themeManager.Text;
case Type::System:
return colorScheme.SystemMessageColor;
return themeManager.SystemMessageColor;
case Type::Link:
return colorScheme.TextLink;
return themeManager.TextLink;
}
static QColor _default;