mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 22:30:32 +05:30
Fix settings layout
This commit is contained in:
parent
e41644974c
commit
38edf75f46
@ -118,9 +118,17 @@ struct PlayerSettings: View {
|
||||
}
|
||||
|
||||
private var systemControlsCommandsPicker: some View {
|
||||
Picker("System controls buttons", selection: $systemControlsCommands) {
|
||||
Text("10 seconds forwards/backwards").tag(SystemControlsCommands.seek)
|
||||
Text("Restart/Play next").tag(SystemControlsCommands.restartAndAdvanceToNext)
|
||||
func labelText(_ label: String) -> String {
|
||||
#if os(macOS)
|
||||
"System controls show buttons for \(label)"
|
||||
#else
|
||||
label
|
||||
#endif
|
||||
}
|
||||
|
||||
return Picker("System controls buttons", selection: $systemControlsCommands) {
|
||||
Text(labelText("10 seconds forwards/backwards")).tag(SystemControlsCommands.seek)
|
||||
Text(labelText("Restart/Play next")).tag(SystemControlsCommands.restartAndAdvanceToNext)
|
||||
}
|
||||
.onChange(of: systemControlsCommands) { _ in
|
||||
player.updateRemoteCommandCenter()
|
||||
|
@ -218,7 +218,7 @@ struct SettingsView: View {
|
||||
case .browsing:
|
||||
return 390
|
||||
case .player:
|
||||
return 390
|
||||
return 420
|
||||
case .history:
|
||||
return 480
|
||||
case .sponsorBlock:
|
||||
@ -226,7 +226,7 @@ struct SettingsView: View {
|
||||
case .locations:
|
||||
return 480
|
||||
case .advanced:
|
||||
return 320
|
||||
return 340
|
||||
case .help:
|
||||
return 600
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user