|
@@ -626,41 +626,14 @@ Component
|
|
|
color: "black"
|
|
|
}
|
|
|
|
|
|
- Rectangle
|
|
|
+ DotButton
|
|
|
{
|
|
|
id: showCameraButton
|
|
|
- width: 36 * screenScaleFactor
|
|
|
- height: width
|
|
|
- radius: 0.5 * width
|
|
|
- anchors.left: parent.left
|
|
|
- anchors.bottom: printJobPreview.bottom
|
|
|
- color: showCameraMouseArea.containsMouse ? UM.Theme.getColor("primary_hover") : UM.Theme.getColor("primary")
|
|
|
- UM.RecolorImage
|
|
|
- {
|
|
|
- id: showCameraIcon
|
|
|
- width: parent.width - 1
|
|
|
- height: width
|
|
|
- anchors.verticalCenter: parent.verticalCenter
|
|
|
- anchors.horizontalCenter: parent.horizontalCenter
|
|
|
- color: UM.Theme.getColor("primary_text")
|
|
|
- source: "../svg/camera-icon.svg"
|
|
|
- }
|
|
|
- MouseArea
|
|
|
+ iconSource: "../svg/camera-icon.svg"
|
|
|
+ anchors
|
|
|
{
|
|
|
- id: showCameraMouseArea
|
|
|
- anchors.fill:parent
|
|
|
- hoverEnabled: true
|
|
|
- onClicked:
|
|
|
- {
|
|
|
- if (OutputDevice.activeCamera !== null)
|
|
|
- {
|
|
|
- OutputDevice.setActiveCamera(null)
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- OutputDevice.setActiveCamera(modelData.camera)
|
|
|
- }
|
|
|
- }
|
|
|
+ left: parent.left
|
|
|
+ bottom: printJobPreview.bottom
|
|
|
}
|
|
|
}
|
|
|
}
|