API 參考
QmlTheme
將主機的 Fluent 色彩、字體排版與動態效果設定作為唯讀的 fluentTheme 物件公開給 QML。僅會影響繫結至其屬性的 QML 元素;標準 Qt Quick 控制項不會自動重新套用樣式。
沒有符合的 API 成員。
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