mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 13:21:10 -07:00
Change Math.floor to Math.round as a last try to fix garbled fonts
CURA-4941
This commit is contained in:
parent
a792fc59eb
commit
b531c0550d
36 changed files with 213 additions and 213 deletions
|
|
@ -68,7 +68,7 @@ SettingItem
|
|||
{
|
||||
id: downArrow
|
||||
x: control.width - width - control.rightPadding
|
||||
y: control.topPadding + Math.floor((control.availableHeight - height) / 2)
|
||||
y: control.topPadding + Math.round((control.availableHeight - height) / 2)
|
||||
|
||||
source: UM.Theme.getIcon("arrow_bottom")
|
||||
width: UM.Theme.getSize("standard_arrow").width
|
||||
|
|
@ -126,16 +126,16 @@ SettingItem
|
|||
background: Rectangle
|
||||
{
|
||||
id: swatch
|
||||
height: Math.floor(UM.Theme.getSize("setting_control").height / 2)
|
||||
height: Math.round(UM.Theme.getSize("setting_control").height / 2)
|
||||
width: height
|
||||
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.margins: Math.floor(UM.Theme.getSize("default_margin").width / 4)
|
||||
anchors.margins: Math.round(UM.Theme.getSize("default_margin").width / 4)
|
||||
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
border.color: enabled ? UM.Theme.getColor("setting_control_border") : UM.Theme.getColor("setting_control_disabled_border")
|
||||
radius: Math.floor(width / 2)
|
||||
radius: Math.round(width / 2)
|
||||
|
||||
color: control.color
|
||||
}
|
||||
|
|
@ -180,16 +180,16 @@ SettingItem
|
|||
background: Rectangle
|
||||
{
|
||||
id: swatch
|
||||
height: Math.floor(UM.Theme.getSize("setting_control").height / 2)
|
||||
height: Math.round(UM.Theme.getSize("setting_control").height / 2)
|
||||
width: height
|
||||
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.margins: Math.floor(UM.Theme.getSize("default_margin").width / 4)
|
||||
anchors.margins: Math.round(UM.Theme.getSize("default_margin").width / 4)
|
||||
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
border.color: enabled ? UM.Theme.getColor("setting_control_border") : UM.Theme.getColor("setting_control_disabled_border")
|
||||
radius: Math.floor(width / 2)
|
||||
radius: Math.round(width / 2)
|
||||
|
||||
color: control.model.getItem(index).color
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue