mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 08:32:00 +00:00
ok starting player refactor
This commit is contained in:
parent
e9da8de67e
commit
681c43ec69
1 changed files with 7 additions and 8 deletions
|
|
@ -127,11 +127,10 @@ fileprivate struct ModulePreviewRow: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SettingsView: View {
|
struct SettingsView: View {
|
||||||
let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "ALPHA"
|
|
||||||
@Environment(\.colorScheme) var colorScheme
|
@Environment(\.colorScheme) var colorScheme
|
||||||
@StateObject var settings = Settings()
|
@StateObject var settings = Settings()
|
||||||
@EnvironmentObject var moduleManager: ModuleManager
|
@EnvironmentObject var moduleManager: ModuleManager
|
||||||
|
|
||||||
@State private var isNavigationActive = false
|
@State private var isNavigationActive = false
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|
@ -253,7 +252,7 @@ struct SettingsView: View {
|
||||||
SettingsNavigationRow(icon: "info.circle", titleKey: "About Sora")
|
SettingsNavigationRow(icon: "info.circle", titleKey: "About Sora")
|
||||||
}
|
}
|
||||||
Divider().padding(.horizontal, 16)
|
Divider().padding(.horizontal, 16)
|
||||||
|
|
||||||
Link(destination: URL(string: "https://github.com/cranci1/Sora")!) {
|
Link(destination: URL(string: "https://github.com/cranci1/Sora")!) {
|
||||||
HStack {
|
HStack {
|
||||||
Image("Github Icon")
|
Image("Github Icon")
|
||||||
|
|
@ -275,7 +274,7 @@ struct SettingsView: View {
|
||||||
.padding(.vertical, 12)
|
.padding(.vertical, 12)
|
||||||
}
|
}
|
||||||
Divider().padding(.horizontal, 16)
|
Divider().padding(.horizontal, 16)
|
||||||
|
|
||||||
Link(destination: URL(string: "https://discord.gg/x7hppDWFDZ")!) {
|
Link(destination: URL(string: "https://discord.gg/x7hppDWFDZ")!) {
|
||||||
HStack {
|
HStack {
|
||||||
Image("Discord Icon")
|
Image("Discord Icon")
|
||||||
|
|
@ -297,7 +296,7 @@ struct SettingsView: View {
|
||||||
.padding(.vertical, 12)
|
.padding(.vertical, 12)
|
||||||
}
|
}
|
||||||
Divider().padding(.horizontal, 16)
|
Divider().padding(.horizontal, 16)
|
||||||
|
|
||||||
Link(destination: URL(string: "https://github.com/cranci1/Sora/issues")!) {
|
Link(destination: URL(string: "https://github.com/cranci1/Sora/issues")!) {
|
||||||
SettingsNavigationRow(
|
SettingsNavigationRow(
|
||||||
icon: "exclamationmark.circle.fill",
|
icon: "exclamationmark.circle.fill",
|
||||||
|
|
@ -307,7 +306,7 @@ struct SettingsView: View {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Divider().padding(.horizontal, 16)
|
Divider().padding(.horizontal, 16)
|
||||||
|
|
||||||
Link(destination: URL(string: "https://github.com/cranci1/Sora/blob/dev/LICENSE")!) {
|
Link(destination: URL(string: "https://github.com/cranci1/Sora/blob/dev/LICENSE")!) {
|
||||||
SettingsNavigationRow(
|
SettingsNavigationRow(
|
||||||
icon: "doc.text.fill",
|
icon: "doc.text.fill",
|
||||||
|
|
@ -335,8 +334,8 @@ struct SettingsView: View {
|
||||||
)
|
)
|
||||||
.padding(.horizontal, 20)
|
.padding(.horizontal, 20)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text("Sora \(version) by cranci1")
|
Text("Sora 1.0.1 by cranci1")
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundStyle(.gray)
|
.foregroundStyle(.gray)
|
||||||
.frame(maxWidth: .infinity, alignment: .center)
|
.frame(maxWidth: .infinity, alignment: .center)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue