Moved gradient invert checkbox

This commit is contained in:
Olivier Prat 2018-03-29 10:19:24 -04:00
parent 3c8cd48dfb
commit 07cb1c1f9e

View file

@ -152,12 +152,7 @@ Rectangle {
spacing: 3 spacing: 3
width: root_col.width width: root_col.width
HifiControls.CheckBox {
text: "Invert"
boxSize: 20
checked: root.config["isInverted"]
onCheckedChanged: { root.config["isInverted"] = checked }
}
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
@ -219,16 +214,32 @@ Rectangle {
} }
} }
RowLayout {
ConfigSlider { spacing: 20
height: 36 height: 36
label: "Edge Width"
integral: false HifiControls.CheckBox {
config: root.config text: "Invert gradient"
property: "edgeWidth" anchors.verticalCenter: parent.verticalCenter
max: 1.0 boxSize: 20
min: 0.0 checked: root.config["isInverted"]
onCheckedChanged: { root.config["isInverted"] = checked }
}
ConfigSlider {
anchors.left: undefined
anchors.verticalCenter: parent.verticalCenter
height: 36
width: 300
label: "Edge Width"
integral: false
config: root.config
property: "edgeWidth"
max: 1.0
min: 0.0
}
} }
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true