mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 10:25:02 +00:00
Fix broken modifier chain around playback speed menu style
This commit is contained in:
@@ -343,11 +343,7 @@ extension QualitySelectorView {
|
||||
.fixedSize(horizontal: true, vertical: false)
|
||||
.frame(minWidth: 80)
|
||||
}
|
||||
#if os(tvOS)
|
||||
// Default menu style on tvOS renders a focusable bordered pill.
|
||||
#else
|
||||
.menuStyle(.borderlessButton)
|
||||
#endif
|
||||
.playbackSpeedMenuStyle()
|
||||
|
||||
Button {
|
||||
if let newRate = nextRate() {
|
||||
@@ -822,3 +818,14 @@ struct TVSettingsRowButtonStyle: ButtonStyle {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
private extension View {
|
||||
@ViewBuilder
|
||||
func playbackSpeedMenuStyle() -> some View {
|
||||
#if os(tvOS)
|
||||
self
|
||||
#else
|
||||
self.menuStyle(.borderlessButton)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user