diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-10 21:30:54 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-10 21:30:54 +1000 |
| commit | 8da5acdb3dced9b4430addbc7cb2800a928eeb19 (patch) | |
| tree | 099844e467a4920005f23efa963f048869fe917f /modules/launcher/AppList.qml | |
| parent | launcher: add config option for hiding applications (#568) (diff) | |
| download | caelestia-shell-8da5acdb3dced9b4430addbc7cb2800a928eeb19.tar.gz caelestia-shell-8da5acdb3dced9b4430addbc7cb2800a928eeb19.tar.bz2 caelestia-shell-8da5acdb3dced9b4430addbc7cb2800a928eeb19.zip | |
launcher: not full rounding + better anim
Diffstat (limited to 'modules/launcher/AppList.qml')
| -rw-r--r-- | modules/launcher/AppList.qml | 19 |
1 files changed, 16 insertions, 3 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: { |