summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-10 21:30:54 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-10 21:30:54 +1000
commit8da5acdb3dced9b4430addbc7cb2800a928eeb19 (patch)
tree099844e467a4920005f23efa963f048869fe917f /modules
parentlauncher: add config option for hiding applications (#568) (diff)
downloadcaelestia-shell-8da5acdb3dced9b4430addbc7cb2800a928eeb19.tar.gz
caelestia-shell-8da5acdb3dced9b4430addbc7cb2800a928eeb19.tar.bz2
caelestia-shell-8da5acdb3dced9b4430addbc7cb2800a928eeb19.zip
launcher: not full rounding + better anim
Diffstat (limited to 'modules')
-rw-r--r--modules/launcher/AppList.qml19
-rw-r--r--modules/launcher/items/ActionItem.qml2
-rw-r--r--modules/launcher/items/AppItem.qml2
-rw-r--r--modules/launcher/items/CalcItem.qml2
-rw-r--r--modules/launcher/items/SchemeItem.qml2
-rw-r--r--modules/launcher/items/VariantItem.qml2
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);