Kylin/Fluent/TextStyle.h

26 lines
563 B
C
Raw Normal View History

2024-08-31 04:13:21 +08:00
#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__