Fluent-Qt

API 參考

QmlTheme

將主機的 Fluent 色彩、字體排版與動態效果設定作為唯讀的 fluentTheme 物件公開給 QML。僅會影響繫結至其屬性的 QML 元素;標準 Qt Quick 控制項不會自動重新套用樣式。

fluent::qmlbridge::QmlTheme

繼承自 QObject

方法

QColor surfaceAlt() const

用於卡片與內嵌區域的替代背景底色。

屬性

QColor background
讀取 background()變更訊號 changed()
QColor surface
讀取 surface()變更訊號 changed()
QColor surfaceAlt

用於卡片與內嵌區域的替代背景底色。

讀取 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()

訊號

void changed()

當主機的佈景主題色彩、字型或動態效果設定變更時發出。

Qt 基底類別文件:QObject