mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Revert change to OSD positions
This commit is contained in:
parent
43c8484514
commit
3fd99f464a
@ -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 {
|
||||
|
@ -277,6 +277,10 @@ enum PlayerControlsLayout: String, CaseIterable, Defaults.Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
var osdVerticalOffset: Double {
|
||||
buttonSize
|
||||
}
|
||||
|
||||
var osdProgressBarHeight: Double {
|
||||
switch self {
|
||||
case .tvRegular:
|
||||
|
Loading…
Reference in New Issue
Block a user