26 lines
563 B
C++
26 lines
563 B
C++
#ifndef __TEXTSTYLE_H__
|
|
#define __TEXTSTYLE_H__
|
|
|
|
#include "Utilities.h"
|
|
#include <QFont>
|
|
#include <QObject>
|
|
|
|
class TextStyle : public QObject {
|
|
Q_OBJECT
|
|
QML_ELEMENT
|
|
QML_SINGLETON
|
|
Q_PROPERTY_AUTO(QString, family)
|
|
Q_PROPERTY_AUTO(QFont, Caption)
|
|
Q_PROPERTY_AUTO(QFont, Body)
|
|
Q_PROPERTY_AUTO(QFont, BodyStrong)
|
|
Q_PROPERTY_AUTO(QFont, Subtitle)
|
|
Q_PROPERTY_AUTO(QFont, Title)
|
|
Q_PROPERTY_AUTO(QFont, TitleLarge)
|
|
Q_PROPERTY_AUTO(QFont, Display)
|
|
|
|
public:
|
|
TextStyle(QObject *parent = nullptr);
|
|
};
|
|
|
|
#endif // __TEXTSTYLE_H__
|