mirror of
https://github.com/yattee/yattee.git
synced 2026-06-07 15:24:21 +00:00
Use glass background for tvOS player settings sheet
Match the info/comments and queue panels by replacing the black dim and inner rounded card with a full-screen ultraThinMaterial backdrop and a transparent list background on tvOS.
This commit is contained in:
@@ -186,7 +186,14 @@ struct QualitySelectorView: View {
|
||||
streamsContent
|
||||
}
|
||||
}
|
||||
#if os(tvOS)
|
||||
// On tvOS the quality sheet is presented over the player with an outer
|
||||
// ultraThinMaterial backdrop (see TVPlayerView.qualitySheetContent), so
|
||||
// the list itself must be transparent to let the glass show through.
|
||||
.background(Color.clear)
|
||||
#else
|
||||
.background(ListBackgroundStyle.grouped.color)
|
||||
#endif
|
||||
.navigationTitle(navigationTitle)
|
||||
#if os(iOS)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
|
||||
Reference in New Issue
Block a user