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 { VStack {
Spacer()
ZStack { ZStack {
GeometryReader { geometry in
VStack(spacing: 0) { VStack(spacing: 0) {
ZStack { ZStack {
OpeningStream() OpeningStream()
NetworkState() NetworkState()
} }
Spacer()
} }
.position( .offset(y: playerControlsLayout.osdVerticalOffset + 5)
x: geometry.size.width / 2,
y: geometry.size.height / 2
)
}
if showControls { if showControls {
Section { Section {

View File

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