diff --git a/shell/applets/HexWaveBackground.qml b/shell/applets/HexWaveBackground.qml index 91978a4..57cb651 100644 --- a/shell/applets/HexWaveBackground.qml +++ b/shell/applets/HexWaveBackground.qml @@ -19,9 +19,7 @@ Item { fragmentShader: Quickshell.shellPath("modules/hex_wave.frag.qsb") property real uSize: 50.0 - // Gaussian tail margin: exp(-m²/40000) < 0.01 at m=500 - readonly property real _waveMargin: 500 - property real uWavePhase: -_waveMargin + property real uWavePhase: -200 property real uBreath: 0 property real uGlitch: 0 property real uGlitchSeed: 0.0 @@ -34,7 +32,7 @@ Item { target: root function onRunningChanged() { if (!root.running) { - fx.uWavePhase = -fx._waveMargin; + fx.uWavePhase = -200; fx.uBreath = 0; } } @@ -45,8 +43,8 @@ Item { loops: Animation.Infinite running: root.running && !root.reducedMotion NumberAnimation { - from: -fx._waveMargin - to: fx.width + fx._waveMargin + from: -200 + to: fx.width + 200 duration: 6000 easing.type: Easing.InOutSine } diff --git a/shell/lock/LockSurface.qml b/shell/lock/LockSurface.qml index b5c8a0f..9001d17 100644 --- a/shell/lock/LockSurface.qml +++ b/shell/lock/LockSurface.qml @@ -199,8 +199,7 @@ WlSessionLockSurface { visible: (S.Modules.lock.mpris ?? true) && _mprisPlayer !== null readonly property var _mprisPlayers: (Mpris.players.values ?? []).filter(p => p.trackTitle || p.playbackState === MprisPlaybackState.Playing || p.playbackState === MprisPlaybackState.Paused) - property int _playerIdx: 0 - readonly property var _mprisPlayer: _mprisPlayers[_playerIdx] ?? _mprisPlayers[0] ?? null + readonly property var _mprisPlayer: _mprisPlayers[0] ?? null readonly property bool _playing: _mprisPlayer?.playbackState === MprisPlaybackState.Playing C.MprisApplet { @@ -212,12 +211,8 @@ WlSessionLockSurface { player: _mprisCard._mprisPlayer players: _mprisCard._mprisPlayers playing: _mprisCard._playing - playerIdx: _mprisCard._playerIdx accentColor: S.Theme.base0D cachedArt: _mprisCard._mprisPlayer?.trackArtUrl ?? "" - onPlayerSwitched: idx => { - _mprisCard._playerIdx = idx; - } } }