general adjustments

This commit is contained in:
cranci1 2024-12-28 15:47:24 +01:00
parent a679dffa66
commit b4d213ac31
6 changed files with 26 additions and 13 deletions

View file

@ -190,7 +190,7 @@ struct AnimeInfoView: View {
openInExternalPlayer(scheme: scheme, url: streamUrl)
Logger.shared.log("Opening external app with scheme: \(scheme)")
return
} else if externalPlayer == "Custom" {
} else if externalPlayer == "Sora" {
DispatchQueue.main.async {
let customMediaPlayer = CustomMediaPlayer(
module: module,

View file

@ -32,10 +32,10 @@ struct SettingsView: View {
.pickerStyle(SegmentedPickerStyle())
}
NavigationLink(destination: SettingsIUView()) {
Text("Minor Interface Settings")
Text("Interface Settings")
}
NavigationLink(destination: SettingsPlayerView()) {
Text("Player")
Text("Media Player")
}
}

View file

@ -23,7 +23,7 @@ struct AboutView: View {
.font(.largeTitle)
.fontWeight(.bold)
Text("Version b1.0.0")
Text("Public beta 1")
.font(.subheadline)
.foregroundColor(.secondary)
}
@ -58,7 +58,7 @@ struct AboutView: View {
}
}
Section(header: Text("Huge thanks"), footer: Text("A huge thanks to the Miru Development team for their support and contributions to Sora. I wont ever be able to thank them enough. Thanks a lot <3")) {
Section(header: Text("Huge thanks"), footer: Text("A huge thanks to the Miru Development team for their support and contributions to Sora. I wont ever be able to thank them enough. Thanks a lot to them and all my discord helper.")) {
HStack {
KFImage(URL(string: "https://storage.ko-fi.com/cdn/useruploads/e68c31f0-7e66-4d63-934a-0508ce443bc0_e71506-30ce-4a01-9ac3-892ffcd18b77.png"))
.resizable()

View file

@ -4,6 +4,7 @@
//
// Created by Francesco on 18/12/24.
//
import SwiftUI
import Kingfisher
@ -17,6 +18,7 @@ struct SettingsModuleView: View {
@State private var showingAddModuleAlert = false
@State private var moduleURL = ""
@State private var errorMessage: ErrorMessage?
@State private var previusImageURLs: [String: String] = [:]
var body: some View {
VStack {
@ -27,11 +29,22 @@ struct SettingsModuleView: View {
ForEach(modulesManager.modules, id: \.name) { module in
HStack {
if let url = URL(string: module.iconURL) {
KFImage(url)
.resizable()
.frame(width: 50, height: 50)
.clipShape(Circle())
.padding(.trailing, 10)
if previusImageURLs[module.name] != module.iconURL {
KFImage(url)
.resizable()
.frame(width: 50, height: 50)
.clipShape(Circle())
.padding(.trailing, 10)
.onAppear {
previusImageURLs[module.name] = module.iconURL
}
} else {
KFImage(url)
.resizable()
.frame(width: 50, height: 50)
.clipShape(Circle())
.padding(.trailing, 10)
}
}
VStack(alignment: .leading) {
Text(module.name)

View file

@ -14,7 +14,7 @@ struct SettingsPlayerView: View {
var body: some View {
Form {
Section(header: Text("Player"), footer: Text("The Force Landscape and HoldSpeed only work inside the default iOS player and custom player.")) {
Section(header: Text("Media Player"), footer: Text("The Force Landscape and HoldSpeed only work inside the default iOS player and Sora player.")) {
HStack {
Text("Media Player")
Spacer()
@ -45,9 +45,9 @@ struct SettingsPlayerView: View {
Label("nPlayer", systemImage: externalPlayer == "nPlayer" ? "checkmark" : "")
}
Button(action: {
externalPlayer = "Custom"
externalPlayer = "Sora"
}) {
Label("Custom", systemImage: externalPlayer == "Custom" ? "checkmark" : "")
Label("Sora", systemImage: externalPlayer == "Sora" ? "checkmark" : "")
}
}
}