From fbaf99307d7f34831541be7eaf943d307129125f Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Fri, 26 Dec 2025 06:41:25 +0000 Subject: [PATCH] docs: qt6,frontends,qml (2 files) --- frontends/qt6/README.md | 1 + frontends/qt6/qmllib/Material/MaterialButton.qml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontends/qt6/README.md b/frontends/qt6/README.md index 148eebdd3..7b87554fc 100644 --- a/frontends/qt6/README.md +++ b/frontends/qt6/README.md @@ -24,4 +24,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. +- `Material.MaterialButton` now supports icon sources and a built-in ripple animation so interactions feel tactile. - 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/MaterialButton.qml b/frontends/qt6/qmllib/Material/MaterialButton.qml index 2c1f9bd20..9fb7e4713 100644 --- a/frontends/qt6/qmllib/Material/MaterialButton.qml +++ b/frontends/qt6/qmllib/Material/MaterialButton.qml @@ -28,10 +28,10 @@ Rectangle { anchors.fill: parent horizontalOffset: 0 verticalOffset: 4 - radius: 16 - samples: 16 - color: "#22000000" - } + radius: 16 + samples: 16 + color: "#22000000" + } Rectangle { anchors.fill: parent