Fix size of the extruder icon

Now it should look the same in all places.
This commit is contained in:
Diego Prado Gesto 2018-11-27 14:49:01 +01:00
parent e863c34f68
commit 077b34b433
3 changed files with 10 additions and 8 deletions

View file

@ -19,12 +19,16 @@ Button
enabled: UM.Selection.hasSelection && extruder.stack.isEnabled
background: Item {}
contentItem: ExtruderIcon
contentItem: Item
{
width: UM.Theme.getSize("button_icon").width
materialColor: model.color
extruderEnabled: extruder.stack.isEnabled
property int index: extruder.index
// For some reason if the extruder icon is not enclosed to the item, the size changes to fill the size of the button
ExtruderIcon
{
anchors.centerIn: parent
materialColor: model.color
extruderEnabled: extruder.stack.isEnabled
property int index: extruder.index
}
}
onClicked: