mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-03-09 13:04:41 -06:00
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:
parent
996f2e7ba1
commit
3655d446b3
1 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue