Details
-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
There was a recent discussion where it became clear our documentation for changing palettes could be improved. The example that was brought up there was the following:
Window { contentItem.palette: switchPalette ? p1 : p2 property bool switchPalette: false Palette { id: p1 buttonText: "maroon" button: "lavender" } Palette { id: p2 buttonText: "white" button: "black" } Button { text: "Click Me" onClicked: switchPalette = !switchPalette } }
We should add a snippet like this to https://doc.qt.io/qt-6/qml-qtquick-item.html#palette-prop and then link to it from e.g. https://doc.qt.io/qt-6/qtquickcontrols-customize.html.