diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-07 12:23:51 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-07 12:23:51 +0100 |
| commit | 27e5bfb21627c73b53623c5ccbf93841a221bfb2 (patch) | |
| tree | 8fce980fd08acf404c77156ca5f42869b0968679 /desktop/island/SonixPanel.qml | |
| parent | 1763a372be1aa7d9a9668fd6db76bd7dac63b658 (diff) | |
| download | quickshell-27e5bfb21627c73b53623c5ccbf93841a221bfb2.tar.gz quickshell-27e5bfb21627c73b53623c5ccbf93841a221bfb2.zip | |
island: shuffle and repeat as two Sonix buttons
The one mode button cycled all five SonixLink modes and showed repeat-off
as its first state, so shuffle looked missing. Shuffle is now a toggle on
the left and repeat a cycle on the right. SonixLink has no shuffle with
repeat one, so with shuffle on repeat goes off and all only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/island/SonixPanel.qml')
| -rw-r--r-- | desktop/island/SonixPanel.qml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/desktop/island/SonixPanel.qml b/desktop/island/SonixPanel.qml index 609afda..09e7b1c 100644 --- a/desktop/island/SonixPanel.qml +++ b/desktop/island/SonixPanel.qml @@ -281,9 +281,15 @@ Column { } TransportButton { + anchors { left: parent.left; verticalCenter: parent.verticalCenter } + glyph: panel.glyph(S.shuffleGlyph(panel.p.mode)) + onClicked: Sonix.command({ do: "mode", value: S.toggleShuffle(panel.p.mode) }, null, panel.report) + } + + TransportButton { anchors { right: parent.right; verticalCenter: parent.verticalCenter } - glyph: panel.glyph(S.modeGlyph(panel.p.mode)) - onClicked: Sonix.command({ do: "mode", value: S.nextMode(panel.p.mode) }, null, panel.report) + glyph: panel.glyph(S.repeatGlyph(panel.p.mode)) + onClicked: Sonix.command({ do: "mode", value: S.nextRepeat(panel.p.mode) }, null, panel.report) } } |
