From 9a16d45be5060f77f7a0028c5f2265f3bd666d88 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Mon, 22 Oct 2018 16:02:55 +0200 Subject: [PATCH] Round divisions Contributes to CL-1051, CL-897, CL-1111 --- plugins/UM3NetworkPrinting/resources/qml/CameraButton.qml | 2 +- .../resources/qml/PrintCoreConfiguration.qml | 2 +- .../UM3NetworkPrinting/resources/qml/PrintJobInfoBlock.qml | 4 ++-- plugins/UM3NetworkPrinting/resources/qml/PrintJobTitle.qml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/UM3NetworkPrinting/resources/qml/CameraButton.qml b/plugins/UM3NetworkPrinting/resources/qml/CameraButton.qml index f9c0d6d1e2..2fcf52c463 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/CameraButton.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/CameraButton.qml @@ -23,7 +23,7 @@ Rectangle { color: UM.Theme.getColor("primary_text"); height: width; source: iconSource; - width: parent.width / 2; + width: Math.round(parent.width / 2); } MouseArea { diff --git a/plugins/UM3NetworkPrinting/resources/qml/PrintCoreConfiguration.qml b/plugins/UM3NetworkPrinting/resources/qml/PrintCoreConfiguration.qml index 54f82142c2..7bcd9ce6e4 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/PrintCoreConfiguration.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/PrintCoreConfiguration.qml @@ -100,7 +100,7 @@ Item { color: UM.Theme.getColor("monitor_skeleton_fill"); height: parent.height; visible: !extruderInfo.printCoreConfiguration; - width: parent.width / 3; + width: Math.round(parent.width / 3); } // Actual content diff --git a/plugins/UM3NetworkPrinting/resources/qml/PrintJobInfoBlock.qml b/plugins/UM3NetworkPrinting/resources/qml/PrintJobInfoBlock.qml index 8426834721..dd0f2f88cf 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/PrintJobInfoBlock.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/PrintJobInfoBlock.qml @@ -72,7 +72,7 @@ Item { color: UM.Theme.getColor("monitor_skeleton_fill"); height: parent.height; visible: !printJob; - width: parent.width / 3; + width: Math.round(parent.width / 3); } Label { anchors.fill: parent; @@ -97,7 +97,7 @@ Item { color: UM.Theme.getColor("monitor_skeleton_fill"); height: parent.height; visible: !printJob; - width: parent.width / 2; + width: Math.round(parent.width / 2); } Label { anchors.fill: parent; diff --git a/plugins/UM3NetworkPrinting/resources/qml/PrintJobTitle.qml b/plugins/UM3NetworkPrinting/resources/qml/PrintJobTitle.qml index 5e226d19e9..f9f7b5ae87 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/PrintJobTitle.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/PrintJobTitle.qml @@ -21,7 +21,7 @@ Column { color: UM.Theme.getColor("monitor_skeleton_fill"); height: parent.height; visible: !job; - width: parent.width / 3; + width: Math.round(parent.width / 3); } Label { @@ -44,7 +44,7 @@ Column { color: UM.Theme.getColor("monitor_skeleton_fill"); height: parent.height; visible: !job; - width: parent.width / 2; + width: Math.round(parent.width / 2); } Label {