Warning, file /system/kjournald/lib/colorizer.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-License-Identifier: LGPL-2.1-or-later OR MIT
0003     SPDX-FileCopyrightText: 2021 Andreas Cord-Landwehr <cordlandwehr@kde.org>
0004 */
0005 
0006 #ifndef COLORIZER_H
0007 #define COLORIZER_H
0008 
0009 #include "kjournald_export.h"
0010 #include <QColor>
0011 #include <QString>
0012 
0013 class KJOURNALD_EXPORT Colorizer
0014 {
0015 public:
0016     enum class COLOR_TYPE {
0017         FOREGROUND,
0018         BACKGROUND,
0019     };
0020 
0021     static QColor color(const QString &key, COLOR_TYPE = COLOR_TYPE::FOREGROUND);
0022 };
0023 
0024 #endif