summary refs log tree commit diff
path: root/src/ui/ThemeManager.cpp
blob: b7b3df4036340e420f61ddf5b88343c9659c83cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include <QFontDatabase>

#include "ThemeManager.h"

ThemeManager::ThemeManager() {}

QColor
ThemeManager::themeColor(const QString &key) const
{
        if (key == "Black")
                return QColor("#171919");

        else if (key == "BrightWhite")
                return QColor("#EBEBEB");
        else if (key == "FadedWhite")
                return QColor("#C9C9C9");
        else if (key == "MediumWhite")
                return QColor("#929292");

        else if (key == "BrightGreen")
                return QColor("#1C3133");
        else if (key == "DarkGreen")
                return QColor("#577275");
        else if (key == "LightGreen")
                return QColor("#46A451");

        else if (key == "Gray")
                return QColor("#5D6565");
        else if (key == "Red")
                return QColor("#E22826");
        else if (key == "Blue")
                return QColor("#81B3A9");

        else if (key == "Transparent")
                return QColor(0, 0, 0, 0);

        return (QColor(0, 0, 0, 0));
}