mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Minor changes
This commit is contained in:
parent
d2cecf164d
commit
dcfd24e376
@ -345,7 +345,7 @@ final class MPVBackend: PlayerBackend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func startControlsUpdates() {
|
func startControlsUpdates() {
|
||||||
guard model.presentingPlayer, !model.controls.presentingOverlays else {
|
guard model.presentingPlayer, model.controls.presentingControls, !model.controls.presentingOverlays else {
|
||||||
self.logger.info("ignored controls update start")
|
self.logger.info("ignored controls update start")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -315,7 +315,7 @@ struct VideoPlayerView: View {
|
|||||||
.onMoveCommand { direction in
|
.onMoveCommand { direction in
|
||||||
if direction == .up {
|
if direction == .up {
|
||||||
playerControls.show()
|
playerControls.show()
|
||||||
} else if direction == .down, !playerControls.presentingControlsOverlay {
|
} else if direction == .down, !playerControls.presentingControlsOverlay, !playerControls.presentingControls {
|
||||||
withAnimation(PlayerControls.animation) {
|
withAnimation(PlayerControls.animation) {
|
||||||
playerControls.presentingControlsOverlay = true
|
playerControls.presentingControlsOverlay = true
|
||||||
}
|
}
|
||||||
|
@ -224,7 +224,7 @@ struct ControlsBar: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 0) {
|
VStack(alignment: .leading, spacing: 0) {
|
||||||
Text(model.currentVideo?.title ?? "Not playing")
|
Text(model.currentVideo?.title ?? "Not Playing")
|
||||||
.font(.system(size: 14))
|
.font(.system(size: 14))
|
||||||
.fontWeight(.semibold)
|
.fontWeight(.semibold)
|
||||||
.foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor)
|
.foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor)
|
||||||
|
Loading…
Reference in New Issue
Block a user