From 30c7a2cbe5acd7a569c50af797c8e98be8ace05a Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Tue, 30 Oct 2018 13:58:42 +0100 Subject: [PATCH] Monitor tab spacing improvements Fixing CL-1063 (adding camera button at all times) introduced a few small spacing issues. This PR fixes them. --- .../resources/qml/PrinterCard.qml | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/plugins/UM3NetworkPrinting/resources/qml/PrinterCard.qml b/plugins/UM3NetworkPrinting/resources/qml/PrinterCard.qml index be03d41eb8..5dfda15edd 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/PrinterCard.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/PrinterCard.qml @@ -48,11 +48,12 @@ Item { Column { height: childrenRect.height; width: parent.width; + spacing: UM.Theme.getSize("default_margin").height; // Main card Item { id: mainCard; - height: 60 * screenScaleFactor + 2 * UM.Theme.getSize("default_margin").width; + height: 60 * screenScaleFactor + UM.Theme.getSize("default_margin").width; width: parent.width; // Machine icon @@ -240,18 +241,15 @@ 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"; + CameraButton { + id: showCameraButton; + anchors { + left: parent.left; + leftMargin: UM.Theme.getSize("default_margin").width; } + iconSource: "../svg/camera-icon.svg"; + visible: root.printer && root.printJob; } - // Progress bar PrinterCardProgressBar {