forked from qt-creator/qt-creator
QmlDesigner: Add UX approved gradient background to 3D edit view
Change-Id: I18b976324f57cf559a43d9ff239796cf25b3cb2f Fixes: QDS-1202 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -174,11 +174,14 @@ Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: sceneBg
|
|
||||||
color: "#FFFFFF"
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
focus: true
|
focus: true
|
||||||
|
|
||||||
|
gradient: Gradient {
|
||||||
|
GradientStop { position: 1.0; color: "#222222" }
|
||||||
|
GradientStop { position: 0.0; color: "#999999" }
|
||||||
|
}
|
||||||
|
|
||||||
TapHandler { // check tapping/clicking an object in the scene
|
TapHandler { // check tapping/clicking an object in the scene
|
||||||
onTapped: {
|
onTapped: {
|
||||||
var pickResult = editView.pick(eventPoint.scenePosition.x,
|
var pickResult = editView.pick(eventPoint.scenePosition.x,
|
||||||
@@ -397,6 +400,18 @@ Window {
|
|||||||
selectedNode : viewWindow.selectedNode ? selectionBox.model : null
|
selectedNode : viewWindow.selectedNode ? selectionBox.model : null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
width: 200
|
||||||
|
height: 120
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: "white"
|
||||||
|
opacity: 0.3
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
@@ -419,9 +434,11 @@ Window {
|
|||||||
text: qsTr("Use Global Orientation")
|
text: qsTr("Use Global Orientation")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: helpText
|
id: helpText
|
||||||
|
color: "white"
|
||||||
text: qsTr("Camera controls: ALT + mouse press and drag. Left: Rotate, Middle: Pan, Right/Wheel: Zoom.")
|
text: qsTr("Camera controls: ALT + mouse press and drag. Left: Rotate, Middle: Pan, Right/Wheel: Zoom.")
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user