From 3655d446b334e9ee5931cd1ef1ccfef0fbbc91e2 Mon Sep 17 00:00:00 2001 From: HellAholic Date: Thu, 5 Feb 2026 22:14:16 +0100 Subject: [PATCH] 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. --- plugins/PaintTool/PaintTool.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/PaintTool/PaintTool.qml b/plugins/PaintTool/PaintTool.qml index 2f96bffd24..ce866695c0 100644 --- a/plugins/PaintTool/PaintTool.qml +++ b/plugins/PaintTool/PaintTool.qml @@ -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