mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
23 lines
438 B
C++
23 lines
438 B
C++
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include <QFontDatabase>
|
|
|
|
#include "ThemeManager.h"
|
|
|
|
ThemeManager::ThemeManager() { setTheme(new Theme); }
|
|
|
|
void
|
|
ThemeManager::setTheme(Theme *theme)
|
|
{
|
|
theme_ = theme;
|
|
theme_->setParent(this);
|
|
}
|
|
|
|
QColor
|
|
ThemeManager::themeColor(const QString &key) const
|
|
{
|
|
Q_ASSERT(theme_);
|
|
return theme_->getColor(key);
|
|
}
|