mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
docs: qt6,frontends,qml (3 files)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -3,7 +3,6 @@ import QtQuick 2.15
|
||||
pragma Singleton
|
||||
|
||||
QtObject {
|
||||
id: palette
|
||||
|
||||
property color primary: "#6750A4"
|
||||
property color primaryContainer: "#EADDFF"
|
||||
|
||||
Reference in New Issue
Block a user