Warning, /maui/mauikit/examples/ColorsRow.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Layouts
0004 import org.mauikit.controls as Maui
0005 
0006 Maui.ApplicationWindow
0007 {
0008     id: root
0009 
0010     Maui.Page
0011     {
0012         id: _page
0013         anchors.fill: parent
0014         Maui.Controls.showCSD: true
0015         headBar.forceCenterMiddleContent: true
0016 
0017         Column
0018         {
0019             width: 400
0020             anchors.centerIn: parent
0021             spacing: Maui.Style.space.big
0022 
0023             Maui.ColorsRow
0024             {
0025                 id: _colorsRow
0026                 width: parent.width
0027 
0028                 currentColor: "#CBFF8C"
0029                 defaultColor : "#CBFF8C"
0030 
0031                 colors: ["#E3E36A", "#CBFF8C", "#C16200", "#881600", "#6A3937", "#706563", "#748386", "#157A6E", "#77B28C", "#36311F"]
0032 
0033                 onColorPicked: (color) =>
0034                                {
0035                                    currentColor = color
0036                                }
0037             }
0038 
0039             Rectangle
0040             {
0041                 radius: 10
0042                 height: 400
0043                 width: parent.width
0044                 color: _colorsRow.currentColor
0045             }
0046         }
0047     }
0048 }
0049