diff options
| -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 |
