mirror of
https://github.com/yattee/yattee.git
synced 2025-01-06 01:20:31 +05:30
Layout fixes
This commit is contained in:
parent
8c8e03931f
commit
2682e52f5a
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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(
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user