mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
41 lines
2.7 KiB
Swift
41 lines
2.7 KiB
Swift
import Defaults
|
|
import SwiftyJSON
|
|
|
|
final class ConstrolsSettingsGroupExporter: SettingsGroupExporter {
|
|
override var globalJSON: JSON {
|
|
[
|
|
"avPlayerUsesSystemControls": Defaults[.avPlayerUsesSystemControls],
|
|
"horizontalPlayerGestureEnabled": Defaults[.horizontalPlayerGestureEnabled],
|
|
"seekGestureSensitivity": Defaults[.seekGestureSensitivity],
|
|
"seekGestureSpeed": Defaults[.seekGestureSpeed],
|
|
"playerControlsLayout": Defaults[.playerControlsLayout].rawValue,
|
|
"fullScreenPlayerControlsLayout": Defaults[.fullScreenPlayerControlsLayout].rawValue,
|
|
"systemControlsCommands": Defaults[.systemControlsCommands].rawValue,
|
|
"buttonBackwardSeekDuration": Defaults[.buttonBackwardSeekDuration],
|
|
"buttonForwardSeekDuration": Defaults[.buttonForwardSeekDuration],
|
|
"gestureBackwardSeekDuration": Defaults[.gestureBackwardSeekDuration],
|
|
"gestureForwardSeekDuration": Defaults[.gestureForwardSeekDuration],
|
|
"systemControlsSeekDuration": Defaults[.systemControlsSeekDuration],
|
|
"playerControlsSettingsEnabled": Defaults[.playerControlsSettingsEnabled],
|
|
"playerControlsCloseEnabled": Defaults[.playerControlsCloseEnabled],
|
|
"playerControlsRestartEnabled": Defaults[.playerControlsRestartEnabled],
|
|
"playerControlsAdvanceToNextEnabled": Defaults[.playerControlsAdvanceToNextEnabled],
|
|
"playerControlsPlaybackModeEnabled": Defaults[.playerControlsPlaybackModeEnabled],
|
|
"playerControlsMusicModeEnabled": Defaults[.playerControlsMusicModeEnabled],
|
|
"playerActionsButtonLabelStyle": Defaults[.playerActionsButtonLabelStyle].rawValue,
|
|
"actionButtonShareEnabled": Defaults[.actionButtonShareEnabled],
|
|
"actionButtonAddToPlaylistEnabled": Defaults[.actionButtonAddToPlaylistEnabled],
|
|
"actionButtonSubscribeEnabled": Defaults[.actionButtonSubscribeEnabled],
|
|
"actionButtonSettingsEnabled": Defaults[.actionButtonSettingsEnabled],
|
|
"actionButtonHideEnabled": Defaults[.actionButtonHideEnabled],
|
|
"actionButtonCloseEnabled": Defaults[.actionButtonCloseEnabled],
|
|
"actionButtonFullScreenEnabled": Defaults[.actionButtonFullScreenEnabled],
|
|
"actionButtonPipEnabled": Defaults[.actionButtonPipEnabled],
|
|
"actionButtonLockOrientationEnabled": Defaults[.actionButtonLockOrientationEnabled],
|
|
"actionButtonRestartEnabled": Defaults[.actionButtonRestartEnabled],
|
|
"actionButtonAdvanceToNextItemEnabled": Defaults[.actionButtonAdvanceToNextItemEnabled],
|
|
"actionButtonMusicModeEnabled": Defaults[.actionButtonMusicModeEnabled]
|
|
]
|
|
}
|
|
}
|