Fluent-Qt

Referencia de API

QmlTheme

Expone los colores, la tipografía y los ajustes de movimiento Fluent del anfitrión a QML como el objeto de solo lectura fluentTheme. Solo afecta a los elementos QML que se enlazan a sus propiedades; los controles estándar de Qt Quick no cambian de estilo automáticamente.

fluent::qmlbridge::QmlTheme

Hereda de QObject

Métodos

QColor surfaceAlt() const

Color de fondo alternativo para tarjetas y áreas insertadas.

Propiedades

QColor background
Lectura background()Notificación changed()
QColor surface
Lectura surface()Notificación changed()
QColor surfaceAlt

Color de fondo alternativo para tarjetas y áreas insertadas.

Lectura surfaceAlt()Notificación changed()
QColor text
Lectura text()Notificación changed()
QColor secondaryText
Lectura secondaryText()Notificación changed()
QColor accent
Lectura accent()Notificación changed()
QColor onAccent
Lectura onAccent()Notificación changed()
QColor border
Lectura border()Notificación changed()
bool dark
Lectura isDark()Notificación changed()
bool animationsEnabled
Lectura areAnimationsEnabled()Notificación changed()
QString fontFamily
Lectura fontFamily()Notificación changed()
int fontPixelSize
Lectura fontPixelSize()Notificación changed()
int cornerRadius
Lectura cornerRadius()Notificación changed()
int transitionDuration
Lectura transitionDuration()Notificación changed()

Señales

void changed()

Se emite cuando cambia cualquier ajuste de color, fuente o movimiento del tema anfitrión.

Documentación de la clase base de Qt: QObject