-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLauncher.qml
More file actions
61 lines (52 loc) · 1.59 KB
/
Launcher.qml
File metadata and controls
61 lines (52 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Widgets
import qs.MaterialDesign
import Quickshell.Hyprland
Item {
GlobalShortcut {
name: "visibility"
appid: "quickshell"
onPressed: loader.active = !loader.active
}
LazyLoader {
id: loader
active: false
PanelWindow {
implicitWidth: 400
implicitHeight: 600
color: "transparent"
focusable: true
Rectangle {
anchors.fill: parent
color: Theme.m3background
radius: 10
Column {
TextField {
id: search
implicitWidth: 300
implicitHeight: 30
focus : true
placeholderText: "Type to search"
HyprlandFocusGrab {
id: grab
active: loader.active
}
}
ListView {
implicitWidth: 500
implicitHeight: 500
model: DesktopEntries.applications.values.filter(a => a.name.includes(search.text))
delegate: Text {
font.family: "roboto"
required property DesktopEntry modelData
font.pixelSize: 20
text: modelData.name
}
}
}
}
}
}
}