mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 12:39:22 +08:00
Always show camera icon in monitor tab
Contributes to CL-1063
This commit is contained in:
parent
b07af898eb
commit
adac66b3f7
@ -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
|
// Detailed card
|
||||||
PrinterCardDetails {
|
PrinterCardDetails {
|
||||||
collapsed: root.collapsed;
|
collapsed: root.collapsed;
|
||||||
@ -230,6 +240,19 @@ Item {
|
|||||||
visible: root.printer;
|
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
|
// Progress bar
|
||||||
PrinterCardProgressBar {
|
PrinterCardProgressBar {
|
||||||
visible: printer && printer.activePrintJob != null;
|
visible: printer && printer.activePrintJob != null;
|
||||||
|
@ -32,8 +32,6 @@ Item {
|
|||||||
spacing: UM.Theme.getSize("default_margin").height;
|
spacing: UM.Theme.getSize("default_margin").height;
|
||||||
width: parent.width;
|
width: parent.width;
|
||||||
|
|
||||||
HorizontalLine {}
|
|
||||||
|
|
||||||
PrinterInfoBlock {
|
PrinterInfoBlock {
|
||||||
printer: root.printer;
|
printer: root.printer;
|
||||||
printJob: root.printer ? root.printer.activePrintJob : null;
|
printJob: root.printer ? root.printer.activePrintJob : null;
|
||||||
@ -69,16 +67,4 @@ Item {
|
|||||||
visible: root.printJob;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user