nheko/src/ui/ThemeManager.cpp

43 lines
1.1 KiB
C++
Raw Normal View History

2021-03-05 00:35:15 +01:00
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
2017-04-06 01:06:42 +02:00
#include <QFontDatabase>
#include "ThemeManager.h"
2021-05-14 23:35:34 +02:00
ThemeManager::ThemeManager() {}
2017-04-06 01:06:42 +02:00
2017-08-20 12:47:22 +02:00
QColor
ThemeManager::themeColor(const QString &key) const
2017-04-06 01:06:42 +02:00
{
2021-05-14 23:35:34 +02:00
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));
2017-04-06 01:06:42 +02:00
}