Add 'Face' brush and disable size controls

Introduce a new BrushShapeButton for the Face brush (Cura.PaintToolBrush.FACE) with icon and localized label. Disable the "Brush Size" label and slider when the selected BrushShape is FACE, since size is not applicable for this brush.
This commit is contained in:
HellAholic 2026-02-05 22:14:16 +01:00
parent 996f2e7ba1
commit 3655d446b3

View file

@ -184,11 +184,25 @@ Item
color: UM.Theme.getColor("icon")
}
}
BrushShapeButton
{
id: buttonBrushFace
shape: Cura.PaintToolBrush.FACE
text: catalog.i18nc("@action:button", "Face")
toolItem: UM.ColorImage
{
source: UM.Theme.getIcon("LayFlatOnFace")
color: UM.Theme.getColor("icon")
}
}
}
UM.Label
{
text: catalog.i18nc("@label", "Brush Size")
enabled: UM.Controller.properties.getValue("BrushShape") !== Cura.PaintToolBrush.FACE
}
UM.Slider
@ -196,6 +210,7 @@ Item
id: shapeSizeSlider
width: parent.width
indicatorVisible: false
enabled: UM.Controller.properties.getValue("BrushShape") !== Cura.PaintToolBrush.FACE
from: 1
to: 100