Make parent item of ExtruderIcons handle all scaling.

CURA-9106
This commit is contained in:
Remco Burema 2022-05-10 17:48:05 +02:00
parent c4f9669887
commit 5479479596
2 changed files with 13 additions and 4 deletions

View file

@ -97,13 +97,16 @@ Item
checked: model.index == 0
contentItem: Item
{
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
width: Math.floor(tabBar.height / extrudersModel.count)
height: tabBar.height
Cura.ExtruderIcon
{
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
materialColor: model.color
extruderEnabled: model.enabled
width: parent.height
height: parent.height
}
}
onClicked: