37 lines
836 B
QML
37 lines
836 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import "../../../config"
|
|
|
|
MouseArea {
|
|
id: menuButton
|
|
width: Math.max(bar.height, menuText.width + Config.spacing)
|
|
height: bar.height
|
|
hoverEnabled: true
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
onClicked: {
|
|
menuProc.running = true
|
|
}
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: "transparent"
|
|
radius: Config.radius_fun(menuButton.height)
|
|
|
|
Text {
|
|
id: menuText
|
|
anchors.centerIn: parent
|
|
text: ""
|
|
font.pixelSize: Config.bigIconSize(menuButton.height)
|
|
font.family: Config.font
|
|
color: Colors.secondaryContainer_fg
|
|
}
|
|
}
|
|
|
|
Process {
|
|
id: menuProc
|
|
command: ["sh", "-c", "wofi --show drun"]
|
|
running: false
|
|
}
|
|
} |