2022-03-11 20:34:21 +01:00
|
|
|
import QtQuick 2.14
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
2022-06-24 19:24:39 +03:00
|
|
|
width: Theme.dp(800)
|
|
|
|
height: Theme.dp(100)
|
2022-03-11 20:34:21 +01:00
|
|
|
|
|
|
|
Row {
|
|
|
|
id: selectedColor
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: colorSelectionGrid.left
|
2022-06-24 19:24:39 +03:00
|
|
|
spacing: Theme.dp(10)
|
2022-03-11 20:34:21 +01:00
|
|
|
StatusBaseText {
|
|
|
|
text: "SelectedColor is"
|
|
|
|
}
|
|
|
|
Rectangle {
|
2022-06-24 19:24:39 +03:00
|
|
|
width: Theme.dp(100)
|
|
|
|
height: Theme.dp(20)
|
2022-03-11 20:34:21 +01:00
|
|
|
radius: width/2
|
|
|
|
color: colorSelectionGrid.selectedColor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusColorSelectorGrid {
|
|
|
|
id: colorSelectionGrid
|
|
|
|
anchors.top: selectedColor.bottom
|
2022-06-24 19:24:39 +03:00
|
|
|
anchors.topMargin: Theme.dp(10)
|
2022-03-11 20:34:21 +01:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
titleText: "COLOR"
|
|
|
|
selectedColorIndex: 2
|
|
|
|
}
|
|
|
|
}
|