diff options
author | Mark <mark.suurmond@gmail.com> | 2018-02-09 13:30:56 +0300 |
---|---|---|
committer | Mark <mark.suurmond@gmail.com> | 2018-02-09 13:30:56 +0300 |
commit | 8fca183a5ed0a1b9c7f9c8a6459225e2cbc0d1a1 (patch) | |
tree | 15f379c08dbf03ad7fe5ae3273c8503d6c061150 /resources/qml/SidebarHeader.qml | |
parent | 183792ae09c291a38b3ef08bbeee1f6e1e88dd36 (diff) |
Fix rounding errors for garbled text
CURA-4941
Diffstat (limited to 'resources/qml/SidebarHeader.qml')
-rw-r--r-- | resources/qml/SidebarHeader.qml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/qml/SidebarHeader.qml b/resources/qml/SidebarHeader.qml index 7fe087c767..ed4378db7d 100644 --- a/resources/qml/SidebarHeader.qml +++ b/resources/qml/SidebarHeader.qml @@ -84,7 +84,7 @@ Column delegate: Button { height: ListView.view.height - width: ListView.view.width / extrudersModel.rowCount() + width: Math.floor(ListView.view.width / extrudersModel.rowCount()) text: model.name tooltip: model.name @@ -192,15 +192,15 @@ Column { right: parent.right top: parent.top - rightMargin: parent.sizeToUse * 0.01 - topMargin: parent.sizeToUse * 0.05 + rightMargin: Math.floor(parent.sizeToUse * 0.01) + topMargin: Math.floor(parent.sizeToUse * 0.05) } color: model.color - width: parent.width * 0.35 - height: parent.height * 0.35 - radius: width / 2 + width: Math.floor(parent.width * 0.35) + height: Math.floor(parent.height * 0.35) + radius: Math.floor(width / 2) border.width: 1 border.color: UM.Theme.getColor("extruder_button_material_border") @@ -219,7 +219,7 @@ Column Item { id: variantRowSpacer - height: UM.Theme.getSize("sidebar_margin").height / 4 + height: Math.floor(UM.Theme.getSize("sidebar_margin").height / 4) width: height visible: !extruderSelectionRow.visible } @@ -323,7 +323,7 @@ Column anchors.horizontalCenter: parent.horizontalCenter visible: buildplateRow.visible width: parent.width - UM.Theme.getSize("sidebar_margin").width * 2 - height: visible ? UM.Theme.getSize("sidebar_lining_thin").height / 2 : 0 + height: visible ? Math.floor(UM.Theme.getSize("sidebar_lining_thin").height / 2) : 0 color: UM.Theme.getColor("sidebar_lining_thin") } |