Revert change to OSD positions

This commit is contained in:
Arkadiusz Fal 2024-07-06 13:39:10 +02:00
parent 43c8484514
commit 3fd99f464a
2 changed files with 11 additions and 11 deletions

View File

@ -75,20 +75,16 @@ struct PlayerControls: View {
}
VStack {
Spacer()
ZStack {
GeometryReader { geometry in
VStack(spacing: 0) {
ZStack {
OpeningStream()
NetworkState()
}
VStack(spacing: 0) {
ZStack {
OpeningStream()
NetworkState()
}
.position(
x: geometry.size.width / 2,
y: geometry.size.height / 2
)
Spacer()
}
.offset(y: playerControlsLayout.osdVerticalOffset + 5)
if showControls {
Section {

View File

@ -277,6 +277,10 @@ enum PlayerControlsLayout: String, CaseIterable, Defaults.Serializable {
}
}
var osdVerticalOffset: Double {
buttonSize
}
var osdProgressBarHeight: Double {
switch self {
case .tvRegular: