import QtQuick import qs.Modules.Launcher.Services import qs.Components import qs.Helpers import ZShell.Config import qs.Services Item { id: root required property var list required property var modelData anchors.left: parent?.left anchors.right: parent?.right implicitHeight: Config.launcher.sizes.itemHeight StateLayer { radius: Tokens.rounding.small onClicked: { root.modelData?.onClicked(root.list); } } Item { anchors.fill: parent anchors.leftMargin: Tokens.padding.small anchors.margins: Tokens.padding.small anchors.rightMargin: Tokens.padding.small MaterialIcon { id: icon anchors.verticalCenter: parent.verticalCenter font.pointSize: Tokens.font.size.extraLarge text: root.modelData?.icon ?? "" } Item { anchors.left: icon.right anchors.leftMargin: Tokens.spacing.medium anchors.verticalCenter: icon.verticalCenter implicitHeight: name.implicitHeight + desc.implicitHeight implicitWidth: parent.width - icon.width CustomText { id: name font.pointSize: Tokens.font.size.normal text: root.modelData?.name ?? "" } CustomText { id: desc anchors.top: name.bottom color: Colors.palette.m3outline elide: Text.ElideRight font.pointSize: Tokens.font.size.small text: root.modelData?.desc ?? "" width: root.width - icon.width - Tokens.rounding.medium * 2 } } } }