Apply glass tint to full mini player
This commit is contained in:
1 parent
80812e8fc1
commit
66bea05615
2 files changed
+6
-5
No files matched your search
@@ -68,7 +68,7 @@ struct MiniPlayerView: View {
|
||||
} label: {
|
||||
Image(systemName: displayedIsPlaying ? "pause.fill" : "play.fill")
|
||||
.font(.system(size: usesCompactLayout ? 18 : 21, weight: .medium))
|
||||
.frame(width: usesCompactLayout ? 34 : 42, height: 36)
|
||||
.frame(width: usesCompactLayout ? 34 : 42, height: usesCompactLayout ? 32 : 36)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
@@ -77,7 +77,7 @@ struct MiniPlayerView: View {
|
||||
Button(action: onNext) {
|
||||
Image(systemName: "forward.end.fill")
|
||||
.font(.system(size: usesCompactLayout ? 18 : 21, weight: .medium))
|
||||
.frame(width: usesCompactLayout ? 34 : 42, height: 36)
|
||||
.frame(width: usesCompactLayout ? 34 : 42, height: usesCompactLayout ? 32 : 36)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
@@ -86,10 +86,9 @@ struct MiniPlayerView: View {
|
||||
.padding(.leading, usesCompactLayout ? 10 : 16)
|
||||
.padding(.trailing, usesCompactLayout ? 9 : 14)
|
||||
.padding(.top, 12)
|
||||
.padding(.bottom, usesCompactLayout ? 8 : 4)
|
||||
.frame(height: 52, alignment: .top)
|
||||
.foregroundStyle(.primary)
|
||||
.glassEffect(.regular.tint(.black.opacity(0.24)), in: Capsule())
|
||||
.shadow(color: .black.opacity(usesCompactLayout ? 0 : 0.08), radius: 8, y: 3)
|
||||
.onChange(of: isPlaying) { _, newValue in
|
||||
displayedIsPlaying = newValue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user