diff options
Diffstat (limited to 'modules/launcher/AppItem.qml')
| -rw-r--r-- | modules/launcher/AppItem.qml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/launcher/AppItem.qml b/modules/launcher/AppItem.qml index cb7f615..473797a 100644 --- a/modules/launcher/AppItem.qml +++ b/modules/launcher/AppItem.qml @@ -1,4 +1,5 @@ import "root:/widgets" +import "root:/services" import "root:/config" import Quickshell import Quickshell.Widgets @@ -8,11 +9,19 @@ PaddedRect { id: root required property DesktopEntry modelData + required property Scope launcher implicitWidth: ListView.view.width padding: [Appearance.padding.smaller, Appearance.padding.normal] - radius: Appearance.rounding.normal - // color: ListView.isCurrentItem ? Appearance.alpha(Appearance.colours.m3surfaceContainerHighest, true) : "transparent" + + StateLayer { + radius: Appearance.rounding.normal + + function onClicked(): void { + Apps.launch(root.modelData); + root.launcher.launcherVisible = false; + } + } IconImage { id: icon |