diff --git a/Riot/Assets/de.lproj/Bwi.strings b/Riot/Assets/de.lproj/Bwi.strings index 9f6672b7e..eb0047eb1 100644 --- a/Riot/Assets/de.lproj/Bwi.strings +++ b/Riot/Assets/de.lproj/Bwi.strings @@ -510,10 +510,11 @@ // MARK: - Onboarding "onboarding_splash_login_button_title" = "Loslegen"; +"authentication_server_selection_server_url" = "Serveradresse"; // MARK: - Login Protection "bwi_login_protection_error_message" = "Der angegebene Server ist nicht für die Nutzung mit dem %@ vorgesehen"; -"bwi_login_protection_info_message" = "Dein Server ist leider noch nicht für den %@ eingerichtet. Wenn du aus der Öffentlichen Verwaltung bist und Fragen hast, wie Du den %@ nutzen kannst, besuche unserer Website."; +"bwi_login_protection_info_message" = "Dein Server ist leider noch nicht für den %@ eingerichtet. Wenn du aus der Öffentlichen Verwaltung bist und Fragen hast, wie Du den %@ nutzen kannst, besuche unsere Website."; "bwi_login_protection_info_button" = "Website"; // MARK: - Polls @@ -548,3 +549,4 @@ "authentication_login_description" = "Mit deinem Konto anmelden"; "authentication_dataprivacy_text" = "Hinweise zur Verarbeitung Ihrer Daten und Ihrer Rechte erhalten Sie in unseren "; "authentication_dataprivacy_link" = "Datenschutzhinweisen"; +"authentication_server_selection_server_url" = "Homeserver URL"; diff --git a/Riot/Generated/BWIStrings.swift b/Riot/Generated/BWIStrings.swift index 8ad5c4bd0..7df6d8789 100644 --- a/Riot/Generated/BWIStrings.swift +++ b/Riot/Generated/BWIStrings.swift @@ -47,6 +47,10 @@ public class BWIL10n: NSObject { public static var authenticationServerSelectionLoginTitle: String { return BWIL10n.tr("Bwi", "authentication_server_selection_login_title") } + /// Homeserver URL + public static var authenticationServerSelectionServerUrl: String { + return BWIL10n.tr("Bwi", "authentication_server_selection_server_url") + } /// PIN eingeben public static var biometricsModeCantUnlockButtonTitle: String { return BWIL10n.tr("Bwi", "biometrics_mode_cant_unlock_button_title") @@ -179,7 +183,7 @@ public class BWIL10n: NSObject { public static var bwiLoginProtectionInfoButton: String { return BWIL10n.tr("Bwi", "bwi_login_protection_info_button") } - /// Dein Server ist leider noch nicht für den %@ eingerichtet. Wenn du aus der Öffentlichen Verwaltung bist und Fragen hast, wie Du den %@ nutzen kannst, besuche unserer Website. + /// Dein Server ist leider noch nicht für den %@ eingerichtet. Wenn du aus der Öffentlichen Verwaltung bist und Fragen hast, wie Du den %@ nutzen kannst, besuche unsere Website. public static func bwiLoginProtectionInfoMessage(_ p1: String, _ p2: String) -> String { return BWIL10n.tr("Bwi", "bwi_login_protection_info_message", p1, p2) } diff --git a/RiotSwiftUI/Modules/Authentication/ServerSelection/AuthenticationServerSelectionViewModel.swift b/RiotSwiftUI/Modules/Authentication/ServerSelection/AuthenticationServerSelectionViewModel.swift index 3d9b792b1..46c043cff 100644 --- a/RiotSwiftUI/Modules/Authentication/ServerSelection/AuthenticationServerSelectionViewModel.swift +++ b/RiotSwiftUI/Modules/Authentication/ServerSelection/AuthenticationServerSelectionViewModel.swift @@ -30,7 +30,12 @@ class AuthenticationServerSelectionViewModel: AuthenticationServerSelectionViewM // MARK: - Setup init(homeserverAddress: String, flow: AuthenticationFlow, hasModalPresentation: Bool) { - let bindings = AuthenticationServerSelectionBindings(homeserverAddress: homeserverAddress) + var bindings = AuthenticationServerSelectionBindings(homeserverAddress: homeserverAddress) + + if BWIBuildSettings.shared.bumLoginFlowLayout { + bindings.homeserverAddress = "" + } + super.init(initialViewState: AuthenticationServerSelectionViewState(bindings: bindings, flow: flow, hasModalPresentation: hasModalPresentation)) diff --git a/RiotSwiftUI/Modules/Authentication/ServerSelection/View/AuthenticationServerSelectionScreen.swift b/RiotSwiftUI/Modules/Authentication/ServerSelection/View/AuthenticationServerSelectionScreen.swift index 1586e5d8a..0685cfead 100644 --- a/RiotSwiftUI/Modules/Authentication/ServerSelection/View/AuthenticationServerSelectionScreen.swift +++ b/RiotSwiftUI/Modules/Authentication/ServerSelection/View/AuthenticationServerSelectionScreen.swift @@ -110,7 +110,7 @@ struct AuthenticationServerSelectionScreen: View { /// The text field, extracted for iOS 15 modifiers to be applied. var textField: some View { - TextField(VectorL10n.authenticationServerSelectionServerUrl, text: $viewModel.homeserverAddress) { + TextField(BWIL10n.authenticationServerSelectionServerUrl, text: $viewModel.homeserverAddress) { isEditingTextField = $0 } .keyboardType(.URL) diff --git a/bwi/CommonUI/ServerIcon.swift b/bwi/CommonUI/ServerIcon.swift index 4c2d81716..c73453a70 100644 --- a/bwi/CommonUI/ServerIcon.swift +++ b/bwi/CommonUI/ServerIcon.swift @@ -15,32 +15,6 @@ * limitations under the License. */ -/* - struct OnboardingIconImage: View { - @Environment(\.theme) private var theme - - let image: ImageAsset - - var body: some View { - Image(image.name) - .resizable() - .renderingMode(.template) - .foregroundColor(theme.colors.accent) - .frame(width: OnboardingMetrics.iconSize, height: OnboardingMetrics.iconSize) - .background(Circle().foregroundColor(.white).padding(2)) - .accessibilityHidden(true) - } - } - - // MARK: - Previews - - struct OnboardingIconImage_Previews: PreviewProvider { - static var previews: some View { - OnboardingIconImage(image: Asset.Images.authenticationEmailIcon) - } - } - */ - import SwiftUI struct ServerIcon: View { @@ -53,7 +27,9 @@ struct ServerIcon: View { Image(image.name) .resizable() .frame(width: size, height: size * 1.3) - .background(Circle().foregroundColor(.white).padding(2)) + .padding() + .background(Color(.white)) + .cornerRadius(20) .accessibilityHidden(true) } }