From 8da5acdb3dced9b4430addbc7cb2800a928eeb19 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 10 Sep 2025 21:30:54 +1000 Subject: launcher: not full rounding + better anim --- modules/launcher/AppList.qml | 19 ++++++++++++++++--- modules/launcher/items/ActionItem.qml | 2 +- modules/launcher/items/AppItem.qml | 2 +- modules/launcher/items/CalcItem.qml | 2 +- modules/launcher/items/SchemeItem.qml | 2 +- modules/launcher/items/VariantItem.qml | 2 +- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml index f5c3846..dc9f4cc 100644 --- a/modules/launcher/AppList.qml +++ b/modules/launcher/AppList.qml @@ -27,13 +27,26 @@ StyledListView { orientation: Qt.Vertical implicitHeight: (Config.launcher.sizes.itemHeight + spacing) * Math.min(Config.launcher.maxShown, count) - spacing - highlightMoveDuration: Appearance.anim.durations.normal - highlightResizeDuration: 0 + preferredHighlightBegin: 0 + preferredHighlightEnd: height + highlightRangeMode: ListView.ApplyRange + highlightFollowsCurrentItem: false highlight: StyledRect { - radius: Appearance.rounding.full + radius: Appearance.rounding.normal color: Colours.palette.m3onSurface opacity: 0.08 + + y: root.currentItem?.y ?? 0 + implicitWidth: root.width + implicitHeight: root.currentItem?.implicitHeight ?? 0 + + Behavior on y { + Anim { + duration: Appearance.anim.durations.expressiveDefaultSpatial + easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial + } + } } state: { diff --git a/modules/launcher/items/ActionItem.qml b/modules/launcher/items/ActionItem.qml index 78b608a..e158029 100644 --- a/modules/launcher/items/ActionItem.qml +++ b/modules/launcher/items/ActionItem.qml @@ -16,7 +16,7 @@ Item { anchors.right: parent?.right StateLayer { - radius: Appearance.rounding.full + radius: Appearance.rounding.normal function onClicked(): void { root.modelData?.onClicked(root.list); diff --git a/modules/launcher/items/AppItem.qml b/modules/launcher/items/AppItem.qml index 4794331..48aace7 100644 --- a/modules/launcher/items/AppItem.qml +++ b/modules/launcher/items/AppItem.qml @@ -18,7 +18,7 @@ Item { anchors.right: parent?.right StateLayer { - radius: Appearance.rounding.full + radius: Appearance.rounding.normal function onClicked(): void { Apps.launch(root.modelData); diff --git a/modules/launcher/items/CalcItem.qml b/modules/launcher/items/CalcItem.qml index 120866f..65489d9 100644 --- a/modules/launcher/items/CalcItem.qml +++ b/modules/launcher/items/CalcItem.qml @@ -23,7 +23,7 @@ Item { anchors.right: parent?.right StateLayer { - radius: Appearance.rounding.full + radius: Appearance.rounding.normal function onClicked(): void { root.onClicked(); diff --git a/modules/launcher/items/SchemeItem.qml b/modules/launcher/items/SchemeItem.qml index f2246dc..b755c37 100644 --- a/modules/launcher/items/SchemeItem.qml +++ b/modules/launcher/items/SchemeItem.qml @@ -16,7 +16,7 @@ Item { anchors.right: parent?.right StateLayer { - radius: Appearance.rounding.full + radius: Appearance.rounding.normal function onClicked(): void { root.modelData?.onClicked(root.list); diff --git a/modules/launcher/items/VariantItem.qml b/modules/launcher/items/VariantItem.qml index c7db975..a161aa8 100644 --- a/modules/launcher/items/VariantItem.qml +++ b/modules/launcher/items/VariantItem.qml @@ -16,7 +16,7 @@ Item { anchors.right: parent?.right StateLayer { - radius: Appearance.rounding.full + radius: Appearance.rounding.normal function onClicked(): void { root.modelData?.onClicked(root.list); -- cgit v1.2.3-freya