Update check box icons name to new icon name

Change checkbox check icon to have set height and width in theme.json. Math.round(parent.width/2.5) would always evaluate to 1 since the width of the check icons parent is fixed.
This commit is contained in:
j.delarago 2022-01-19 17:56:56 +01:00
parent cac27770ce
commit c54c375a7c
4 changed files with 19 additions and 19 deletions

View file

@ -28,11 +28,11 @@ CheckBox
{
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: Math.round(parent.width / 2.5)
height: Math.round(parent.height / 2.5)
height: UM.Theme.getSize("checkbox_mark").height
width: UM.Theme.getSize("checkbox_mark").width
sourceSize.height: width
color: UM.Theme.getColor("checkbox_mark")
source: UM.Theme.getIcon("Check")
source: UM.Theme.getIcon("EmptyCheck", "low")
opacity: checkbox.checked
Behavior on opacity { NumberAnimation { duration: 100; } }
}