mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 15:09:03 +08:00
Change the extruder icon in the object list to be a filled circle
CURA-8011
This commit is contained in:
parent
7f6e6403d2
commit
b378e4870a
@ -13,8 +13,6 @@ Button
|
|||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: UM.Theme.getSize("action_button").height
|
height: UM.Theme.getSize("action_button").height
|
||||||
leftPadding: UM.Theme.getSize("thin_margin").width
|
|
||||||
rightPadding: perObjectSettingsInfo.visible ? UM.Theme.getSize("default_lining").width : UM.Theme.getSize("thin_margin").width
|
|
||||||
checkable: true
|
checkable: true
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
@ -46,14 +44,14 @@ Button
|
|||||||
width: objectItemButton.width - objectItemButton.leftPadding
|
width: objectItemButton.width - objectItemButton.leftPadding
|
||||||
height: UM.Theme.getSize("action_button").height
|
height: UM.Theme.getSize("action_button").height
|
||||||
|
|
||||||
UM.RecolorImage
|
Rectangle
|
||||||
{
|
{
|
||||||
id: swatch
|
id: swatch
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
width: height
|
width: UM.Theme.getSize("standard_arrow").height
|
||||||
height: parent.height - UM.Theme.getSize("narrow_margin").height
|
height: UM.Theme.getSize("standard_arrow").height
|
||||||
source: UM.Theme.getIcon("Extruder", "medium")
|
radius: Math.round(width / 2)
|
||||||
color: extruderColor
|
color: extruderColor
|
||||||
visible: showExtruderSwatches && extruderColor != ""
|
visible: showExtruderSwatches && extruderColor != ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user