1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-06 01:20:31 +05:30

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) .buttonStyle(.plain)
} }
} }
.listRowBackground(Color.clear)
} }
#if os(macOS) #if os(macOS)
.listStyle(.inset) .listStyle(.inset)
#elseif os(iOS) #elseif os(iOS)
.listStyle(.grouped) .listStyle(.grouped)
.backport
.scrollContentBackground(false)
#else #else
.listStyle(.plain) .listStyle(.plain)
#endif #endif

View File

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

View File

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

View File

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