mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.position(
|
|
||||||
x: geometry.size.width / 2,
|
Spacer()
|
||||||
y: geometry.size.height / 2
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
.offset(y: playerControlsLayout.osdVerticalOffset + 5)
|
||||||
|
|
||||||
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