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,9 +214,22 @@ Rectangle {
} }
} }
RowLayout {
ConfigSlider { spacing: 20
height: 36 height: 36
HifiControls.CheckBox {
text: "Invert gradient"
anchors.verticalCenter: parent.verticalCenter
boxSize: 20
checked: root.config["isInverted"]
onCheckedChanged: { root.config["isInverted"] = checked }
}
ConfigSlider {
anchors.left: undefined
anchors.verticalCenter: parent.verticalCenter
height: 36
width: 300
label: "Edge Width" label: "Edge Width"
integral: false integral: false
config: root.config config: root.config
@ -229,6 +237,9 @@ Rectangle {
max: 1.0 max: 1.0
min: 0.0 min: 0.0
} }
}
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true