import QtQuick 2.15
Text {
id: action
property real unit: 16
property color fg: "#fef3c7"
property string label
signal clicked()
color: fg
font.pixelSize: unit
opacity: area.containsMouse ? 1 : 0.7
text: label
MouseArea {
id: area
anchors.fill: parent
anchors.margins: -action.unit / 2
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: action.clicked()
}
}
neiam
/neiam-devices
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
469 B · text
History
0fc5cce