docs: qt6,frontends,qml (3 files)

This commit is contained in:
2025-12-26 06:40:38 +00:00
parent 2427a4fff7
commit e86b4dc27d
3 changed files with 5 additions and 4 deletions

View File

@@ -69,10 +69,11 @@ ApplicationWindow {
Material.MaterialSurface {
Layout.fillWidth: true
elevation: 14
contentComponent: ColumnLayout {
spacing: 14
contentComponent: Component {
ColumnLayout {
spacing: 14
Text {
Text {
text: "Material surface"
font.pixelSize: 20
color: Material.MaterialPalette.onSurface

View File

@@ -23,4 +23,5 @@ You can also embed `main.qml` into a Qt Quick Application project and expose C++
- Material-inspired components live under `frontends/qt6/qmllib/Material` and provide palette tokens plus buttons, cards, text fields, chips, and sample layouts.
- Import them with `import "qmllib/Material" as Material` and reference `Material.MaterialButton`, `Material.MaterialCard`, `Material.MaterialTextField`, `Material.MaterialChip`, and the singleton palette `Material.MaterialPalette`.
- Use `Material.MaterialSurface` and `Material.MaterialDivider` to group controls with Material elevation, spacing, and dividers.
- Preview the Material view with `qmlscene frontends/qt6/MaterialLanding.qml` or embed it into your Qt Quick application to reuse the tokens and components across other screens.

View File

@@ -3,7 +3,6 @@ import QtQuick 2.15
pragma Singleton
QtObject {
id: palette
property color primary: "#6750A4"
property color primaryContainer: "#EADDFF"