mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-26 01:18:34 -07:00
25 lines
490 B
QML
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)
|
|
}
|
|
}
|