MultiMC5/application/themes/CustomTheme.h
Petr Mrázek 37cc59c04d GH-378 add a resource search path to custom themes
This allows adding images and other bits and pieces to themes.
2016-11-06 05:48:52 +01:00

30 lines
566 B
C++

#pragma once
#include "ITheme.h"
class CustomTheme: public ITheme
{
public:
CustomTheme(ITheme * baseTheme, QString folder);
virtual ~CustomTheme() {}
QString id() override;
QString name() override;
QString appStyleSheet() override;
QPalette colorScheme() override;
double fadeAmount() override;
QColor fadeColor() override;
QString qtTheme() override;
QStringList searchPaths() override;
private: /* data */
QPalette m_palette;
QColor m_fadeColor;
double m_fadeAmount;
QString m_styleSheet;
QString m_name;
QString m_id;
QString m_widgets;
};