mirror of
https://github.com/cranci1/Sora.git
synced 2026-05-19 08:12:22 +00:00
This commit is contained in:
parent
5826f89866
commit
43c0509b93
1 changed files with 0 additions and 42 deletions
|
|
@ -178,10 +178,6 @@ struct OnboardingCustomizeAppearanceView: View {
|
||||||
@AppStorage("alwaysLandscape") private var isAlwaysLandscape = false
|
@AppStorage("alwaysLandscape") private var isAlwaysLandscape = false
|
||||||
|
|
||||||
@AppStorage("externalPlayer") private var externalPlayer: String = "Sora"
|
@AppStorage("externalPlayer") private var externalPlayer: String = "Sora"
|
||||||
|
|
||||||
@AppStorage("mediaColumnsPortrait") private var mediaColumnsPortrait: Int = 2
|
|
||||||
@AppStorage("mediaColumnsLandscape") private var mediaColumnsLandscape: Int = 4
|
|
||||||
|
|
||||||
private let mediaPlayers = ["Default", "VLC", "OutPlayer", "Infuse", "nPlayer", "Sora"]
|
private let mediaPlayers = ["Default", "VLC", "OutPlayer", "Infuse", "nPlayer", "Sora"]
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|
@ -222,44 +218,6 @@ struct OnboardingCustomizeAppearanceView: View {
|
||||||
Toggle("Force Landscape", isOn: $isAlwaysLandscape)
|
Toggle("Force Landscape", isOn: $isAlwaysLandscape)
|
||||||
.tint(.accentColor)
|
.tint(.accentColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsSection(title: "Grid Layout") {
|
|
||||||
HStack {
|
|
||||||
Text("Portrait Columns")
|
|
||||||
Spacer()
|
|
||||||
Picker("", selection: $mediaColumnsPortrait) {
|
|
||||||
if UIDevice.current.userInterfaceIdiom == .pad {
|
|
||||||
ForEach(1..<6) { i in
|
|
||||||
Text("\(i)").tag(i)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
ForEach(1..<5) { i in
|
|
||||||
Text("\(i)").tag(i)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.pickerStyle(MenuPickerStyle())
|
|
||||||
.labelsHidden()
|
|
||||||
}
|
|
||||||
|
|
||||||
HStack {
|
|
||||||
Text("Landscape Columns")
|
|
||||||
Spacer()
|
|
||||||
Picker("", selection: $mediaColumnsLandscape) {
|
|
||||||
if UIDevice.current.userInterfaceIdiom == .pad {
|
|
||||||
ForEach(2..<9) { i in
|
|
||||||
Text("\(i)").tag(i)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
ForEach(2..<6) { i in
|
|
||||||
Text("\(i)").tag(i)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.pickerStyle(MenuPickerStyle())
|
|
||||||
.labelsHidden()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
.background(
|
.background(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue