mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Fix size of the extruder icon
Now it should look the same in all places.
This commit is contained in:
parent
e863c34f68
commit
077b34b433
3 changed files with 10 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue