diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-16 12:41:18 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-16 12:41:18 +0800 |
| commit | ad03313876e8af4ad3df868ace0af9faec841e41 (patch) | |
| tree | 182a4864fe936f47c2969e6f4a3137b269cef86a | |
| parent | 3b22c27a87f87c2965af683a0d55f48480fab02d (diff) | |
mpris: more LOD in pause changes
| -rw-r--r-- | bar/Mpris.qml | 10 | ||||
| -rw-r--r-- | config/Bar.qml | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml index a2895aa..f09076d 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -97,7 +97,7 @@ Item { width: Bar.appIconSize height: Bar.appIconSize - opacity: activePlayer.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity * 1.1 + opacity: activePlayer.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity // put shadow Image { @@ -133,6 +133,7 @@ Item { IText { animate: true opacity: activePlayer.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity + color: activePlayer.playbackState === MprisPlaybackState.Playing ? WallustColors.foreground : WallustColors.color15 text: root.cleanedTitle Behavior on opacity { @@ -141,6 +142,13 @@ Item { easing.type: Easing.InOutQuad } } + + Behavior on color { + ColorAnimation { + duration: General.animateDuration / 4 + easing.type: Easing.InOutQuad + } + } } } } diff --git a/config/Bar.qml b/config/Bar.qml index 6687552..6ac48d5 100644 --- a/config/Bar.qml +++ b/config/Bar.qml @@ -37,7 +37,7 @@ Singleton { readonly property int moduleRadius: Style.rounding.small - readonly property double mediaPausedOpacity: 0.8 + readonly property double mediaPausedOpacity: 0.75 readonly property string preferedPlayer: "spotify" readonly property double bgTransparency: 0.25 |
