Monitor tab spacing improvements

Fixing CL-1063 (adding camera button at all times) introduced a few small spacing issues. This PR fixes them.
This commit is contained in:
Ian Paschal 2018-10-30 13:58:42 +01:00
parent 1680548a39
commit 30c7a2cbe5

View file

@ -48,11 +48,12 @@ Item {
Column { Column {
height: childrenRect.height; height: childrenRect.height;
width: parent.width; width: parent.width;
spacing: UM.Theme.getSize("default_margin").height;
// Main card // Main card
Item { Item {
id: mainCard; id: mainCard;
height: 60 * screenScaleFactor + 2 * UM.Theme.getSize("default_margin").width; height: 60 * screenScaleFactor + UM.Theme.getSize("default_margin").width;
width: parent.width; width: parent.width;
// Machine icon // Machine icon
@ -240,18 +241,15 @@ Item {
visible: root.printer; visible: root.printer;
} }
Item { CameraButton {
id: cameraButtonWrapper; id: showCameraButton;
height: showCameraButton.width + 2 * UM.Theme.getSize("default_margin").height; anchors {
visible: root.printer && root.printJob; left: parent.left;
width: height; leftMargin: UM.Theme.getSize("default_margin").width;
CameraButton {
id: showCameraButton;
anchors.centerIn: parent;
iconSource: "../svg/camera-icon.svg";
} }
iconSource: "../svg/camera-icon.svg";
visible: root.printer && root.printJob;
} }
// Progress bar // Progress bar
PrinterCardProgressBar { PrinterCardProgressBar {