Set up and start main content view

This commit is contained in:
Max Goedjen
2024-01-04 17:16:03 -08:00
parent 8c67ea7c73
commit de959345ed
4 changed files with 164 additions and 6 deletions

View File

@@ -138,7 +138,7 @@ extension ContentView {
showingAgentInfo = true
}, label: {
HStack {
Text("Agent is Running")
Text("agent_running_notice_title")
.font(.headline)
.foregroundColor(colorScheme == .light ? Color(white: 0.3) : .white)
Circle()
@@ -149,10 +149,10 @@ extension ContentView {
.buttonStyle(ToolbarButtonStyle(lightColor: .black.opacity(0.05), darkColor: .white.opacity(0.05)))
.popover(isPresented: $showingAgentInfo, attachmentAnchor: attachmentAnchor, arrowEdge: .bottom) {
VStack {
Text("SecretAgent is Running")
Text("agent_running_notice_detail_title")
.font(.title)
.padding(5)
Text("SecretAgent is a process that runs in the background to sign requests, so you don't need to keep Secretive open all the time.\n\n**You can close Secretive, and everything will still keep working.**")
Text("agent_running_notice_detail_body")
.frame(width: 300)
}
.padding()
@@ -166,7 +166,7 @@ extension ContentView {
showingAppPathNotice = true
}, label: {
Group {
Text("Secretive Is Not in Applications Folder")
Text("app_not_in_applications_notice_title")
}
.font(.headline)
.foregroundColor(.white)
@@ -178,7 +178,7 @@ extension ContentView {
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 64)
Text("Secretive needs to be in your Applications folder to work properly. Please move it and relaunch.")
Text("app_not_in_applications_notice_detail_body")
.frame(maxWidth: 300)
}
.padding()

View File

@@ -150,7 +150,7 @@ struct SecretAgentSetupView: View {
bodyText: "Secretive needs to set up a helper app to work properly. It will sign requests from SSH clients in the background, so you don't need to keep the main Secretive app open.",
buttonTitle: "Install",
buttonAction: install) {
(Text("This helper app is called ") + Text("Secret Agent").bold().underline() + Text(" and you may see it in Activity Manager from time to time."))
(Text("This helper app is called **Secret Agent** and you may see it in Activity Manager from time to time."))
.multilineTextAlignment(.center)
}
}