Fluent-Qt

Référence API

QmlTheme

Expose les couleurs, la typographie et les paramètres d'animation Fluent de l'hôte à QML via l'objet en lecture seule fluentTheme. N'affecte que les éléments QML liés à ses propriétés ; les contrôles Qt Quick standard ne sont pas restylés automatiquement.

fluent::qmlbridge::QmlTheme

Hérite de QObject

Méthodes

QColor surfaceAlt() const

Couleur d'arrière-plan alternative pour les cartes et zones encastrées.

Propriétés

QColor background
Lecture background()Notification changed()
QColor surface
Lecture surface()Notification changed()
QColor surfaceAlt

Couleur d'arrière-plan alternative pour les cartes et zones encastrées.

Lecture surfaceAlt()Notification changed()
QColor text
Lecture text()Notification changed()
QColor secondaryText
Lecture secondaryText()Notification changed()
QColor accent
Lecture accent()Notification changed()
QColor onAccent
Lecture onAccent()Notification changed()
QColor border
Lecture border()Notification changed()
bool dark
Lecture isDark()Notification changed()
bool animationsEnabled
Lecture areAnimationsEnabled()Notification changed()
QString fontFamily
Lecture fontFamily()Notification changed()
int fontPixelSize
Lecture fontPixelSize()Notification changed()
int cornerRadius
Lecture cornerRadius()Notification changed()
int transitionDuration
Lecture transitionDuration()Notification changed()

Signaux

void changed()

Émis lorsque tout paramètre de couleur, de police ou d'animation du thème hôte change.

Documentation de la classe de base Qt : QObject