Round divisions

Contributes to CL-1051, CL-897, CL-1111
This commit is contained in:
Ian Paschal 2018-10-22 16:02:55 +02:00
parent 34abc48a1a
commit 9a16d45be5
4 changed files with 6 additions and 6 deletions

View file

@ -23,7 +23,7 @@ Rectangle {
color: UM.Theme.getColor("primary_text"); color: UM.Theme.getColor("primary_text");
height: width; height: width;
source: iconSource; source: iconSource;
width: parent.width / 2; width: Math.round(parent.width / 2);
} }
MouseArea { MouseArea {

View file

@ -100,7 +100,7 @@ Item {
color: UM.Theme.getColor("monitor_skeleton_fill"); color: UM.Theme.getColor("monitor_skeleton_fill");
height: parent.height; height: parent.height;
visible: !extruderInfo.printCoreConfiguration; visible: !extruderInfo.printCoreConfiguration;
width: parent.width / 3; width: Math.round(parent.width / 3);
} }
// Actual content // Actual content

View file

@ -72,7 +72,7 @@ Item {
color: UM.Theme.getColor("monitor_skeleton_fill"); color: UM.Theme.getColor("monitor_skeleton_fill");
height: parent.height; height: parent.height;
visible: !printJob; visible: !printJob;
width: parent.width / 3; width: Math.round(parent.width / 3);
} }
Label { Label {
anchors.fill: parent; anchors.fill: parent;
@ -97,7 +97,7 @@ Item {
color: UM.Theme.getColor("monitor_skeleton_fill"); color: UM.Theme.getColor("monitor_skeleton_fill");
height: parent.height; height: parent.height;
visible: !printJob; visible: !printJob;
width: parent.width / 2; width: Math.round(parent.width / 2);
} }
Label { Label {
anchors.fill: parent; anchors.fill: parent;

View file

@ -21,7 +21,7 @@ Column {
color: UM.Theme.getColor("monitor_skeleton_fill"); color: UM.Theme.getColor("monitor_skeleton_fill");
height: parent.height; height: parent.height;
visible: !job; visible: !job;
width: parent.width / 3; width: Math.round(parent.width / 3);
} }
Label { Label {
@ -44,7 +44,7 @@ Column {
color: UM.Theme.getColor("monitor_skeleton_fill"); color: UM.Theme.getColor("monitor_skeleton_fill");
height: parent.height; height: parent.height;
visible: !job; visible: !job;
width: parent.width / 2; width: Math.round(parent.width / 2);
} }
Label { Label {