Simplify MessageLevel::Enum -> MessageLevel
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@@ -229,7 +229,7 @@ bool CustomTheme::read(const QString& path, bool& hasCustomLogColors)
|
||||
hasCustomLogColors = true;
|
||||
|
||||
auto logColorsRoot = Json::requireObject(root, "logColors");
|
||||
auto readAndSetLogColor = [this, readColor, logColorsRoot](MessageLevel::Enum level, bool fg, const QString& colorName) {
|
||||
auto readAndSetLogColor = [this, readColor, logColorsRoot](MessageLevel level, bool fg, const QString& colorName) {
|
||||
auto color = readColor(logColorsRoot, colorName);
|
||||
if (color.isValid()) {
|
||||
if (fg)
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
class QStyle;
|
||||
|
||||
struct LogColors {
|
||||
QMap<MessageLevel::Enum, QColor> background;
|
||||
QMap<MessageLevel::Enum, QColor> foreground;
|
||||
QMap<MessageLevel, QColor> background;
|
||||
QMap<MessageLevel, QColor> foreground;
|
||||
};
|
||||
|
||||
// TODO: rename to Theme; this is not an interface as it contains method implementations
|
||||
|
||||
Reference in New Issue
Block a user