Always show camera icon in monitor tab

Contributes to CL-1063
This commit is contained in:
Ian Paschal 2018-10-30 10:53:43 +01:00
parent b07af898eb
commit adac66b3f7
2 changed files with 23 additions and 14 deletions

View File

@ -223,6 +223,16 @@ Item {
}
}
HorizontalLine {
anchors {
left: parent.left;
leftMargin: UM.Theme.getSize("default_margin").width;
right: parent.right;
rightMargin: UM.Theme.getSize("default_margin").width;
}
visible: root.printer;
}
// Detailed card
PrinterCardDetails {
collapsed: root.collapsed;
@ -230,6 +240,19 @@ Item {
visible: root.printer;
}
Item {
id: cameraButtonWrapper;
height: showCameraButton.width + 2 * UM.Theme.getSize("default_margin").height;
visible: root.printer && root.printJob;
width: height;
CameraButton {
id: showCameraButton;
anchors.centerIn: parent;
iconSource: "../svg/camera-icon.svg";
}
}
// Progress bar
PrinterCardProgressBar {
visible: printer && printer.activePrintJob != null;

View File

@ -32,8 +32,6 @@ Item {
spacing: UM.Theme.getSize("default_margin").height;
width: parent.width;
HorizontalLine {}
PrinterInfoBlock {
printer: root.printer;
printJob: root.printer ? root.printer.activePrintJob : null;
@ -69,16 +67,4 @@ Item {
visible: root.printJob;
}
}
CameraButton {
id: showCameraButton;
anchors {
bottom: contentColumn.bottom;
bottomMargin: Math.round(1.5 * UM.Theme.getSize("default_margin").height);
left: contentColumn.left;
leftMargin: Math.round(0.5 * UM.Theme.getSize("default_margin").width);
}
iconSource: "../svg/camera-icon.svg";
visible: root.printJob;
}
}