mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -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,13 +19,17 @@ Button
|
||||||
enabled: UM.Selection.hasSelection && extruder.stack.isEnabled
|
enabled: UM.Selection.hasSelection && extruder.stack.isEnabled
|
||||||
|
|
||||||
background: Item {}
|
background: Item {}
|
||||||
contentItem: ExtruderIcon
|
contentItem: Item
|
||||||
{
|
{
|
||||||
width: UM.Theme.getSize("button_icon").width
|
// 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
|
materialColor: model.color
|
||||||
extruderEnabled: extruder.stack.isEnabled
|
extruderEnabled: extruder.stack.isEnabled
|
||||||
property int index: extruder.index
|
property int index: extruder.index
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,8 +51,6 @@ Item
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: index + 1
|
text: index + 1
|
||||||
font: UM.Theme.getFont("extruder_icon")
|
font: UM.Theme.getFont("extruder_icon")
|
||||||
width: contentWidth
|
|
||||||
height: contentHeight
|
|
||||||
visible: extruderEnabled
|
visible: extruderEnabled
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
|
@ -402,7 +402,7 @@
|
||||||
"thin_margin": [0.71, 0.71],
|
"thin_margin": [0.71, 0.71],
|
||||||
"narrow_margin": [0.5, 0.5],
|
"narrow_margin": [0.5, 0.5],
|
||||||
|
|
||||||
"extruder_icon": [1.8, 1.8],
|
"extruder_icon": [2.33, 2.33],
|
||||||
|
|
||||||
"section": [0.0, 2.2],
|
"section": [0.0, 2.2],
|
||||||
"section_icon": [1.6, 1.6],
|
"section_icon": [1.6, 1.6],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue