From e86b4dc27d914f5484de440ed9bc0f7d80cc6881 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Fri, 26 Dec 2025 06:40:38 +0000 Subject: [PATCH] docs: qt6,frontends,qml (3 files) --- frontends/qt6/MaterialLanding.qml | 7 ++++--- frontends/qt6/README.md | 1 + frontends/qt6/qmllib/Material/MaterialPalette.qml | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontends/qt6/MaterialLanding.qml b/frontends/qt6/MaterialLanding.qml index 3471926d0..b5b0716b2 100644 --- a/frontends/qt6/MaterialLanding.qml +++ b/frontends/qt6/MaterialLanding.qml @@ -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 diff --git a/frontends/qt6/README.md b/frontends/qt6/README.md index 9a2db3fa9..148eebdd3 100644 --- a/frontends/qt6/README.md +++ b/frontends/qt6/README.md @@ -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. diff --git a/frontends/qt6/qmllib/Material/MaterialPalette.qml b/frontends/qt6/qmllib/Material/MaterialPalette.qml index 07a949014..c6e6ae50f 100644 --- a/frontends/qt6/qmllib/Material/MaterialPalette.qml +++ b/frontends/qt6/qmllib/Material/MaterialPalette.qml @@ -3,7 +3,6 @@ import QtQuick 2.15 pragma Singleton QtObject { - id: palette property color primary: "#6750A4" property color primaryContainer: "#EADDFF"