ios: texts about operators (#5213)

* ios: texts about operators

* remove comment

* button for conditions
This commit is contained in:
Evgeny
2024-11-19 15:26:41 +00:00
committed by GitHub
parent 4b9c618ae3
commit 181f72fa1f
5 changed files with 29 additions and 20 deletions
@@ -70,6 +70,11 @@ struct ChooseServerOperators: View {
ForEach(serverOperators) { srvOperator in
operatorCheckView(srvOperator)
}
Text("You can configure servers via settings.")
.font(.footnote)
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity, alignment: .center)
// .padding(.horizontal, 32)
Spacer()
@@ -83,10 +88,12 @@ struct ChooseServerOperators: View {
continueButton()
}
if onboarding {
Text("You can disable operators and configure your servers in Network & servers settings.")
.multilineTextAlignment(.center)
.font(.footnote)
.padding(.horizontal, 32)
Button("Conditions of use") {
// TODO open accepted conditions
}
.font(.callout)
.foregroundColor(reviewForOperators.isEmpty ? .accentColor : .clear)
.padding(.top)
}
}
.padding(.bottom)
@@ -136,7 +143,7 @@ struct ChooseServerOperators: View {
showInfoSheet = true
}
Text("Select operators, whose servers you will be using.")
Text("Select network operators to use.")
}
}
@@ -320,14 +327,15 @@ struct ChooseServerOperators: View {
struct ChooseServerOperatorsInfoView: View {
var body: some View {
VStack(alignment: .leading) {
Text("Why choose multiple operators")
Text("Network operators")
.font(.largeTitle)
.bold()
.padding(.vertical)
ScrollView {
VStack(alignment: .leading) {
Group {
Text("Selecting multiple operators improves protection of your communication graph.")
Text("TODO Better explanation")
Text("When more than one network operator is enabled, the app will use the servers of different operators for each conversation.")
Text("For example, if you receive messages via SimpleX Chat server, the app will use one of Flux servers for private routing.")
}
.padding(.bottom)
}
@@ -90,8 +90,10 @@ struct CreateFirstProfile: View {
var body: some View {
VStack(alignment: .leading, spacing: 20) {
Text("Your profile, contacts and delivered messages are stored on your device.")
.font(.callout)
.foregroundColor(theme.colors.secondary)
Text("The profile is only shared with your contacts.")
.font(.callout)
.foregroundColor(theme.colors.secondary)
HStack {
@@ -114,8 +116,8 @@ struct CreateFirstProfile: View {
.padding(.horizontal)
.padding(.vertical, 10)
.background(
RoundedRectangle(cornerRadius: 16, style: .continuous)
.fill(Color(uiColor: .secondarySystemGroupedBackground))
RoundedRectangle(cornerRadius: 10, style: .continuous)
.fill(Color(uiColor: .tertiarySystemFill))
)
}
.padding(.top)
@@ -144,7 +144,6 @@ struct SimpleXInfo: View {
CreateFirstProfile()
.navigationTitle("Create your profile")
.navigationBarTitleDisplayMode(.large)
.modifier(ThemedBackground(grouped: true))
}
private func userExistsFallbackButton() -> some View {
@@ -257,14 +257,11 @@ struct OperatorView: View {
.modifier(ThemedBackground(grouped: true))
.navigationBarTitleDisplayMode(.large)
} label: {
HStack {
Image(userServers[operatorIndex].operator_.logo(colorScheme))
.resizable()
.scaledToFit()
.grayscale(userServers[operatorIndex].operator_.enabled ? 0.0 : 1.0)
.frame(width: 24, height: 24)
Text(userServers[operatorIndex].operator_.tradeName)
}
Image(userServers[operatorIndex].operator_.largeLogo(colorScheme))
.resizable()
.scaledToFit()
.grayscale(userServers[operatorIndex].operator_.enabled ? 0.0 : 1.0)
.frame(height: 40)
}
}
+4 -1
View File
@@ -1221,7 +1221,10 @@ public struct ServerOperatorInfo: Decodable {
public let operatorsInfo: Dictionary<OperatorTag, ServerOperatorInfo> = [
.simplex: ServerOperatorInfo(
description: ["SimpleX Chat preset servers"],
description: [
"SimpleX Chat is the first communication network that has no user profile IDs of any kind, not even random numbers or keys that identify the users.",
"SimpleX Chat Ltd develops the communication software for SimpleX network."
],
website: "https://simplex.chat",
logo: "decentralized",
largeLogo: "logo",