final touch ups
This commit is contained in:
parent
2bdaf173a4
commit
e6d31bc281
|
@ -84,7 +84,7 @@ struct EpisodesRowView: View {
|
|||
HStack(alignment: .top) {
|
||||
VStack(alignment: .leading) {
|
||||
|
||||
ImageView(src: episode.getBackdropImage(maxWidth: 445),
|
||||
ImageView(src: episode.getBackdropImage(maxWidth: 500),
|
||||
bh: episode.getBackdropImageBlurHash())
|
||||
.mask(Rectangle().frame(width: 500, height: 280))
|
||||
.frame(width: 500, height: 280)
|
||||
|
|
|
@ -22,8 +22,13 @@ struct ContinueWatchingCard: View {
|
|||
} label: {
|
||||
ZStack(alignment: .bottom) {
|
||||
|
||||
ImageView(src: item.getBackdropImage(maxWidth: 500))
|
||||
.frame(width: 500, height: 281.25)
|
||||
if item.itemType == .episode {
|
||||
ImageView(src: item.getSeriesBackdropImage(maxWidth: 500))
|
||||
.frame(width: 500, height: 281.25)
|
||||
} else {
|
||||
ImageView(src: item.getBackdropImage(maxWidth: 500))
|
||||
.frame(width: 500, height: 281.25)
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text(item.getItemProgressString() ?? "")
|
||||
|
|
|
@ -31,6 +31,7 @@ struct CinematicEpisodeItemView: View {
|
|||
|
||||
ImageView(src: viewModel.item.getBackdropImage(maxWidth: 1920),
|
||||
bh: viewModel.item.getBackdropImageBlurHash())
|
||||
.frame(height: UIScreen.main.bounds.height - 10)
|
||||
.ignoresSafeArea()
|
||||
|
||||
ScrollView {
|
||||
|
|
|
@ -16,10 +16,60 @@ struct LatestMediaView: View {
|
|||
@Default(.showPosterLabels) var showPosterLabels
|
||||
|
||||
var body: some View {
|
||||
PortraitItemsRowView(rowTitle: L10n.latestWithString(viewModel.library.name ?? ""),
|
||||
items: viewModel.items,
|
||||
showItemTitles: showPosterLabels) { item in
|
||||
homeRouter.route(to: \.modalItem, item)
|
||||
VStack(alignment: .leading) {
|
||||
|
||||
L10n.latestWithString(viewModel.library.name ?? "").text
|
||||
.font(.title3)
|
||||
.padding(.horizontal, 50)
|
||||
|
||||
ScrollView(.horizontal) {
|
||||
HStack(alignment: .top) {
|
||||
ForEach(viewModel.items, id: \.self) { item in
|
||||
|
||||
VStack(spacing: 15) {
|
||||
Button {
|
||||
homeRouter.route(to: \.modalItem, item)
|
||||
} label: {
|
||||
ImageView(src: item.portraitHeaderViewURL(maxWidth: 257))
|
||||
.frame(width: 257, height: 380)
|
||||
}
|
||||
.frame(height: 380)
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
|
||||
if showPosterLabels {
|
||||
Text(item.title)
|
||||
.lineLimit(2)
|
||||
.frame(width: 257)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
homeRouter.route(to: \.library, (viewModel: .init(parentID: viewModel.library.id!,
|
||||
filters: LibraryFilters(filters: [], sortOrder: [.descending], sortBy: [.dateAdded])),
|
||||
title: viewModel.library.name ?? ""))
|
||||
} label: {
|
||||
ZStack {
|
||||
Color(UIColor.darkGray)
|
||||
.opacity(0.5)
|
||||
|
||||
VStack(spacing: 20) {
|
||||
Image(systemName: "chevron.right")
|
||||
.font(.title)
|
||||
|
||||
L10n.seeAll.text
|
||||
.font(.title3)
|
||||
}
|
||||
}
|
||||
}
|
||||
.frame(width: 257, height: 380)
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
}
|
||||
.padding(.horizontal, 50)
|
||||
.padding(.vertical)
|
||||
}
|
||||
.edgesIgnoringSafeArea(.horizontal)
|
||||
}
|
||||
.focusSection()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,8 +20,13 @@ struct NextUpCard: View {
|
|||
Button {
|
||||
homeRouter.route(to: \.modalItem, item)
|
||||
} label: {
|
||||
ImageView(src: item.getBackdropImage(maxWidth: 500))
|
||||
.frame(width: 500, height: 281.25)
|
||||
if item.itemType == .episode {
|
||||
ImageView(src: item.getSeriesBackdropImage(maxWidth: 500))
|
||||
.frame(width: 500, height: 281.25)
|
||||
} else {
|
||||
ImageView(src: item.getBackdropImage(maxWidth: 500))
|
||||
.frame(width: 500, height: 281.25)
|
||||
}
|
||||
}
|
||||
.buttonStyle(CardButtonStyle())
|
||||
.padding(.top)
|
||||
|
|
|
@ -204,20 +204,20 @@ class VLCPlayerViewController: UIViewController {
|
|||
hideConfirmCloseOverlay()
|
||||
|
||||
if Defaults[.downActionShowsMenu] {
|
||||
if !displayingContentOverlay {
|
||||
if !displayingContentOverlay && !displayingOverlay {
|
||||
didSelectMenu()
|
||||
}
|
||||
}
|
||||
case .leftArrow:
|
||||
hideConfirmCloseOverlay()
|
||||
|
||||
if !displayingContentOverlay {
|
||||
if !displayingContentOverlay && !displayingOverlay {
|
||||
didSelectBackward()
|
||||
}
|
||||
case .rightArrow:
|
||||
hideConfirmCloseOverlay()
|
||||
|
||||
if !displayingContentOverlay {
|
||||
if !displayingContentOverlay && !displayingOverlay {
|
||||
didSelectForward()
|
||||
}
|
||||
case .pageUp: ()
|
||||
|
@ -239,9 +239,6 @@ class VLCPlayerViewController: UIViewController {
|
|||
hideOverlay()
|
||||
} else if displayingContentOverlay {
|
||||
hideOverlayContent()
|
||||
|
||||
showOverlay()
|
||||
restartOverlayDismissTimer()
|
||||
} else if viewModel.confirmClose && !displayingConfirmClose {
|
||||
|
||||
showConfirmCloseOverlay()
|
||||
|
|
|
@ -47,7 +47,7 @@ struct tvOSVLCOverlay: View {
|
|||
if let subtitle = viewModel.subtitle {
|
||||
Text(subtitle)
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.lightGray)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
||||
Text(viewModel.title)
|
||||
|
|
|
@ -527,12 +527,14 @@ public final class TvOSSlider: UIControl {
|
|||
|
||||
@objc
|
||||
private func leftTapWasTriggered() {
|
||||
setValue(value-stepValue, animated: true)
|
||||
// setValue(value-stepValue, animated: true)
|
||||
viewModel.playerOverlayDelegate?.didSelectBackward()
|
||||
}
|
||||
|
||||
@objc
|
||||
private func rightTapWasTriggered() {
|
||||
setValue(value+stepValue, animated: true)
|
||||
// setValue(value+stepValue, animated: true)
|
||||
viewModel.playerOverlayDelegate?.didSelectForward()
|
||||
}
|
||||
|
||||
public override func pressesBegan(_ presses: Set<UIPress>, with event: UIPressesEvent?) {
|
||||
|
|
Loading…
Reference in New Issue