37 lines
813 B
QML
37 lines
813 B
QML
import Quickshell // for PanelWindow
|
|
import QtQuick // for Text
|
|
import QtQuick.Controls
|
|
import Quickshell.Io
|
|
import Quickshell.Widgets
|
|
|
|
WrapperMouseArea {
|
|
ClippingWrapperRectangle {
|
|
radius: 5
|
|
implicitWidth: 30; implicitHeight: 30
|
|
Text {
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
anchors.fill: parent
|
|
text: " "
|
|
font.pointSize: 16
|
|
|
|
color: Pywal.special.foreground
|
|
}
|
|
color: {
|
|
containsMouse
|
|
? Pywal.colors.color12
|
|
: Pywal.colors.color1
|
|
}
|
|
}
|
|
|
|
hoverEnabled: true
|
|
|
|
Process {
|
|
id: launcher
|
|
running: false
|
|
command: ["rofi", "-show", "drun"]
|
|
}
|
|
|
|
onClicked: launcher.running = true
|
|
}
|