diff --git a/Apps/LekaUpdater/Sources/View/InformationView/InformationView.swift b/Apps/LekaUpdater/Sources/View/InformationView/InformationView.swift index 86a6d37296..601d19744c 100644 --- a/Apps/LekaUpdater/Sources/View/InformationView/InformationView.swift +++ b/Apps/LekaUpdater/Sources/View/InformationView/InformationView.swift @@ -19,7 +19,21 @@ struct InformationView: View { VStack { ScrollView { VStack(alignment: .center, spacing: 10) { - if viewModel.showRobotNeedsUpdate { + if viewModel.showRobotCannotBeUpdated { + RobotCannotBeUpdatedIllustration(size: 200) + + Text(viewModel.robotName) + .font(.title3) + + Text( + """ + 🚧 DEV - Processus de mise à jour non reconnu ou inexistant (LekaOS v\(viewModel.robotOSVersion)) + (Code erreur #0003) + """ + ) + .font(.title2) + .multilineTextAlignment(.center) + } else if viewModel.showRobotNeedsUpdate { RobotNeedsUpdateIllustration(size: 200) Text(viewModel.robotName) diff --git a/Apps/LekaUpdater/Sources/View/InformationView/RobotCannotBeUpdateIllustration.swift b/Apps/LekaUpdater/Sources/View/InformationView/RobotCannotBeUpdateIllustration.swift index dfccf60702..b3f25d293e 100644 --- a/Apps/LekaUpdater/Sources/View/InformationView/RobotCannotBeUpdateIllustration.swift +++ b/Apps/LekaUpdater/Sources/View/InformationView/RobotCannotBeUpdateIllustration.swift @@ -5,7 +5,7 @@ import DesignKit import SwiftUI -struct RobotCannotBeUpdateIllustration: View { +struct RobotCannotBeUpdatedIllustration: View { public var illustrationSize: CGFloat = 300 private var circleSize: CGFloat { @@ -36,7 +36,7 @@ struct RobotCannotBeUpdateIllustration: View { Circle() .strokeBorder( - .yellow, + .gray, style: StrokeStyle(lineWidth: circleLineWidth, lineCap: .round, dash: [dashSpacer, dashSpacer]) ) .frame(width: circleSize) @@ -53,9 +53,9 @@ struct RobotCannotBeUpdateIllustration: View { Circle().fill(.white) .frame(height: checkmarkSize) - Image(systemName: "exclamationmark.circle") + Image(systemName: "xmark.circle") .font(.system(size: checkmarkSize)) - .foregroundColor(.yellow) + .foregroundColor(.gray) } } } @@ -63,12 +63,12 @@ struct RobotCannotBeUpdateIllustration: View { } } -struct RobotCannotBeUpdateIllustration_Previews: PreviewProvider { +struct RobotCannotBeUpdatedIllustration_Previews: PreviewProvider { static var previews: some View { Form { Section { Group { - RobotCannotBeUpdateIllustration(size: 600) + RobotCannotBeUpdatedIllustration(size: 600) } .frame(maxWidth: .infinity, alignment: .center) }