Cura/plugins/PaintTool/BrushColorButton.qml
Erwan MATHIEU bbddcab4e9
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
Proper paint-on-seam UI
CURA-12578
2025-07-03 11:05:09 +02:00

25 lines
490 B
QML

// Copyright (c) 2025 UltiMaker
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick
import UM 1.7 as UM
import Cura 1.0 as Cura
UM.ToolbarButton
{
id: buttonBrushColor
property string color
checked: base.selectedColor === buttonBrushColor.color
onClicked: setColor()
function setColor()
{
base.selectedColor = buttonBrushColor.color
UM.Controller.triggerActionWithData("setBrushColor", buttonBrushColor.color)
}
}