Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove PlayButtons component

Delete macOS PlayButtons.swift SwiftUI view and update Xcode user
interface state file

-65
macos/Rockbox.xcodeproj/project.xcworkspace/xcuserdata/tsirysandratraina.xcuserdatad/UserInterfaceState.xcuserstate

This is a binary file and will not be displayed.

-65
macos/Rockbox/Views/Components/PlayButtons.swift
··· 1 - // 2 - // PlayButtons.swift 3 - // Rockbox 4 - // 5 - // Created by Tsiry Sandratraina on 20/12/2025. 6 - // 7 - 8 - import SwiftUI 9 - 10 - struct PlayShuffleButtons: View { 11 - var onPlay: () -> Void 12 - var onShuffle: () -> Void 13 - var songCount: Int 14 - 15 - @State private var isHoveringPlay = false 16 - @State private var isHoveringShuffle = false 17 - 18 - var body: some View { 19 - HStack(spacing: 12) { 20 - Button(action: onPlay) { 21 - HStack(spacing: 6) { 22 - Image(systemName: "play.fill") 23 - .font(.system(size: 12)) 24 - Text("Play") 25 - .font(.system(size: 13, weight: .medium)) 26 - } 27 - .foregroundStyle(.white) 28 - .padding(.horizontal, 16) 29 - .padding(.vertical, 8) 30 - .background( 31 - RoundedRectangle(cornerRadius: 6) 32 - .fill(isHoveringPlay ? Color.accentColor.opacity(0.8) : Color.accentColor) 33 - ) 34 - } 35 - .buttonStyle(.plain) 36 - .onHover { isHoveringPlay = $0 } 37 - 38 - Button(action: onShuffle) { 39 - HStack(spacing: 6) { 40 - Image(systemName: "shuffle") 41 - .font(.system(size: 12)) 42 - Text("Shuffle") 43 - .font(.system(size: 13, weight: .medium)) 44 - } 45 - .foregroundStyle(.primary) 46 - .padding(.horizontal, 16) 47 - .padding(.vertical, 8) 48 - .background( 49 - RoundedRectangle(cornerRadius: 6) 50 - .fill(isHoveringShuffle ? Color.secondary.opacity(0.2) : Color.secondary.opacity(0.1)) 51 - ) 52 - } 53 - .buttonStyle(.plain) 54 - .onHover { isHoveringShuffle = $0 } 55 - 56 - Spacer() 57 - 58 - Text("\(songCount) songs") 59 - .font(.system(size: 12)) 60 - .foregroundStyle(.secondary) 61 - } 62 - .padding(.horizontal, 20) 63 - .padding(.vertical, 12) 64 - } 65 - }