summaryrefslogtreecommitdiff
path: root/modules/dashboard
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-19 15:42:51 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-19 15:42:51 +0800
commita4bd60c9070b8a89adbb9981af38bd5e13e175ff (patch)
tree447f34e3c1b39a134e4ea7b7bc5e3fbdcdee4467 /modules/dashboard
parentdashboard: anim media progress colour (diff)
downloadcaelestia-shell-a4bd60c9070b8a89adbb9981af38bd5e13e175ff.tar.gz
caelestia-shell-a4bd60c9070b8a89adbb9981af38bd5e13e175ff.tar.bz2
caelestia-shell-a4bd60c9070b8a89adbb9981af38bd5e13e175ff.zip
dashboard: fix media cover art
Diffstat (limited to 'modules/dashboard')
-rw-r--r--modules/dashboard/dash/Media.qml30
1 files changed, 10 insertions, 20 deletions
diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml
index 289ba68..945b989 100644
--- a/modules/dashboard/dash/Media.qml
+++ b/modules/dashboard/dash/Media.qml
@@ -1,8 +1,8 @@
import "root:/widgets"
import "root:/services"
import "root:/config"
+import Quickshell.Widgets
import QtQuick
-import QtQuick.Effects
import QtQuick.Shapes
Item {
@@ -83,7 +83,7 @@ Item {
}
}
- StyledRect {
+ ClippingRectangle {
id: cover
anchors.top: parent.top
@@ -108,29 +108,19 @@ Item {
anchors.fill: parent
- visible: false
source: Players.active?.trackArtUrl ?? ""
asynchronous: true
fillMode: Image.PreserveAspectCrop
+ sourceSize.width: width
+ sourceSize.height: height
}
- Rectangle {
- id: mask
-
- layer.enabled: true
- layer.smooth: true
- visible: false
- anchors.fill: image
- radius: parent.radius
- }
-
- MultiEffect {
- anchors.fill: image
- source: image
- maskEnabled: true
- maskSource: mask
- maskSpreadAtMin: 1
- maskThresholdMin: 0.5
+ Behavior on color {
+ ColorAnimation {
+ duration: Appearance.anim.durations.normal
+ easing.type: Easing.BezierSpline
+ easing.bezierCurve: Appearance.anim.curves.standard
+ }
}
}