From 7cbfce800a57091c20c7596f0875c8075166d110 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 2 May 2025 17:03:36 +1000 Subject: launcher: better app items Also config max shown Custom cursor for styled text field --- modules/launcher/Content.qml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'modules/launcher/Content.qml') diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml index 5f99345..a41fca4 100644 --- a/modules/launcher/Content.qml +++ b/modules/launcher/Content.qml @@ -37,27 +37,14 @@ Item { spacing: Appearance.spacing.small orientation: Qt.Vertical verticalLayoutDirection: Qt.BottomToTop - implicitHeight: ((currentItem?.height ?? 1) + spacing) * Math.min(10, count) - spacing + implicitHeight: ((currentItem?.height ?? 1) + spacing) * Math.min(LauncherConfig.maxShown, count) - spacing anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom anchors.margins: Appearance.padding.large - delegate: PaddedRect { - id: entry - - required property DesktopEntry modelData - - radius: Appearance.rounding.normal - color: Appearance.alpha(Appearance.colours.m3surfaceContainerHighest, true) - - StyledText { - text: modelData.name - font.family: Appearance.font.family.sans - font.pointSize: Appearance.font.size.smaller - } - } + delegate: AppItem {} add: Transition { Anim { -- cgit v1.2.3-freya