Layout fixes

This commit is contained in:
Arkadiusz Fal 2022-08-09 19:28:16 +02:00
parent 8c8e03931f
commit 2682e52f5a
4 changed files with 12 additions and 7 deletions

View File

@ -18,11 +18,14 @@ struct ChaptersView: View {
.buttonStyle(.plain)
}
}
.listRowBackground(Color.clear)
}
#if os(macOS)
.listStyle(.inset)
#elseif os(iOS)
.listStyle(.grouped)
.backport
.scrollContentBackground(false)
#else
.listStyle(.plain)
#endif

View File

@ -44,7 +44,7 @@ struct PlayerControls: View {
buttonsBar
HStack {
if !player.currentVideo.isNil, player.playingFullScreen {
if !player.currentVideo.isNil, fullScreenLayout {
Button {
withAnimation(Self.animation) {
model.presentingDetailsOverlay = true

View File

@ -138,22 +138,22 @@ struct TimelineView: View {
.zIndex(3)
}
Circle()
Rectangle()
.contentShape(Rectangle())
.foregroundColor(.clear)
.background(
.foregroundColor(Color.clear)
.overlay(
ZStack {
Circle()
.fill(dragging ? .white : .gray)
.frame(maxWidth: 8)
.frame(width: 13)
Circle()
.fill(dragging ? .gray : .white)
.frame(maxWidth: 6)
.frame(width: 11)
}
)
.offset(x: thumbOffset)
.frame(maxWidth: thumbAreaWidth, minHeight: thumbAreaWidth)
.frame(width: thumbAreaWidth, height: thumbAreaWidth)
#if !os(tvOS)
.gesture(

View File

@ -411,6 +411,8 @@ struct VideoPlayerView: View {
player.backend.setNeedsDrawing(false)
player.exitFullScreen()
}
viewDragOffset = Self.hiddenOffset
} else {
withAnimation(.linear(duration: 0.2)) {
viewDragOffset = 0