Square mini player artwork

This commit is contained in:
lucast committed 2026-10-07 03:28:59 +02:00
1 parent b7ac719ca0
commit 9e82949c1d
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -41,6 +41,7 @@ struct MainTabView: View {
private struct PlayerBottomAccessory: View { private struct PlayerBottomAccessory: View {
@Environment(\.tabViewBottomAccessoryPlacement) private var placement @Environment(\.tabViewBottomAccessoryPlacement) private var placement
@Environment(\.displayScale) private var displayScale
let track: Track let track: Track
let isPlaying: Bool let isPlaying: Bool
@@ -67,6 +68,7 @@ private struct PlayerBottomAccessory: View {
.frame(maxWidth: placement == .inline ? 320 : .infinity) .frame(maxWidth: placement == .inline ? 320 : .infinity)
.glassEffect(.regular.tint(.black.opacity(0.36)), in: Capsule()) .glassEffect(.regular.tint(.black.opacity(0.36)), in: Capsule())
.shadow(color: .black.opacity(placement == .inline ? 0 : 0.08), radius: 8, y: 3) .shadow(color: .black.opacity(placement == .inline ? 0 : 0.08), radius: 8, y: 3)
.offset(y: 1 / displayScale)
.transition(.move(edge: .bottom).combined(with: .opacity)) .transition(.move(edge: .bottom).combined(with: .opacity))
} }
} }
+1 -1
View File
@@ -44,7 +44,7 @@ struct MiniPlayerView: View {
var body: some View { var body: some View {
HStack(spacing: usesCompactLayout ? 8 : 10) { HStack(spacing: usesCompactLayout ? 8 : 10) {
artwork artwork
.frame(width: usesCompactLayout ? 32 : 36, height: 32) .frame(width: usesCompactLayout ? 32 : 36, height: usesCompactLayout ? 32 : 36)
.clipShape(RoundedRectangle(cornerRadius: usesCompactLayout ? 8 : 10, style: .continuous)) .clipShape(RoundedRectangle(cornerRadius: usesCompactLayout ? 8 : 10, style: .continuous))
.accessibilityHidden(true) .accessibilityHidden(true)