Round fractional widths and heights in system-themed qml

This commit is contained in:
fieldOfView 2017-07-14 12:51:20 +02:00
parent 82ff9dfe1b
commit b5d7ec5bd2
15 changed files with 92 additions and 92 deletions

View file

@ -53,21 +53,21 @@ UM.ManagementPage
Row
{
spacing: UM.Theme.getSize("default_margin").width / 2;
anchors.left: parent.left;
anchors.leftMargin: UM.Theme.getSize("default_margin").width;
anchors.right: parent.right;
spacing: (UM.Theme.getSize("default_margin").width / 2) | 0
anchors.left: parent.left
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.right: parent.right
Rectangle
{
width: parent.height * 0.8
height: parent.height * 0.8
width: (parent.height * 0.8) | 0
height: (parent.height * 0.8) | 0
color: model.metadata.color_code
border.color: isCurrentItem ? palette.highlightedText : palette.text;
anchors.verticalCenter: parent.verticalCenter
}
Label
{
width: parent.width * 0.3
width: (parent.width * 0.3) | 0
text: model.metadata.material
elide: Text.ElideRight
font.italic: model.id == activeId