24 lines
365 B
QML
24 lines
365 B
QML
import QtQuick
|
|
import Quickshell
|
|
|
|
Text {
|
|
|
|
required property var onClicked
|
|
|
|
function click() {
|
|
if (mouseArea.containsMouse) {
|
|
onClicked();
|
|
}
|
|
}
|
|
|
|
color: "#fff"
|
|
text: "Sound"
|
|
|
|
MouseArea {
|
|
id: mouseArea
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
cursorShape: Qt.PointingHandCursor
|
|
}
|
|
}
|