Fluent-Qt

API 参考

QmlTheme

通过只读 fluentTheme 对象向 QML 提供宿主的 Fluent token。

fluent::qmlbridge::QmlTheme

继承自 QObject

属性

QColor background
读取 background()通知 changed()
QColor surface
读取 surface()通知 changed()
QColor surfaceAlt

返回用于内嵌表面的 Fluent 交替层颜色。

读取 surfaceAlt()通知 changed()
QColor text
读取 text()通知 changed()
QColor secondaryText
读取 secondaryText()通知 changed()
QColor accent
读取 accent()通知 changed()
QColor onAccent
读取 onAccent()通知 changed()
QColor border
读取 border()通知 changed()
bool dark
读取 isDark()通知 changed()
bool animationsEnabled
读取 areAnimationsEnabled()通知 changed()
QString fontFamily
读取 fontFamily()通知 changed()
int fontPixelSize
读取 fontPixelSize()通知 changed()
int cornerRadius
读取 cornerRadius()通知 changed()
int transitionDuration
读取 transitionDuration()通知 changed()

方法

QColor surfaceAlt() const

返回用于内嵌表面的 Fluent 交替层颜色。

信号

void changed()

返回用于内嵌表面的 Fluent 交替层颜色。

Qt 基类完整成员:QObject