mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Revert change to OSD positions
This commit is contained in:
parent
43c8484514
commit
3fd99f464a
@ -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 {
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user