Simplify permissions UI in welcome screen

- Removed white bordered containers
- Simplified explanation text to be more concise
- Removed redundant labels and icons
- Made layout more compact
- Cleaner, more minimal design
This commit is contained in:
Peter Steinberger 2025-06-17 22:17:16 +02:00
parent 0e4d202d71
commit 042163d3ab

View file

@ -255,7 +255,7 @@ private struct RequestPermissionsPageView: View {
.fontWeight(.semibold) .fontWeight(.semibold)
Text( Text(
"VibeTunnel needs permissions to launch terminal sessions and send commands to certain terminals." "VibeTunnel needs AppleScript to launch and manage terminal sessions\nand accessibility to send commands to certain terminals."
) )
.font(.body) .font(.body)
.foregroundColor(.secondary) .foregroundColor(.secondary)
@ -263,23 +263,9 @@ private struct RequestPermissionsPageView: View {
.frame(maxWidth: 480) .frame(maxWidth: 480)
.fixedSize(horizontal: false, vertical: true) .fixedSize(horizontal: false, vertical: true)
// Permissions list // Permissions buttons
VStack(spacing: 20) { VStack(spacing: 16) {
// AppleScript permission // Automation permission
VStack(spacing: 12) {
HStack {
Image(systemName: "applescript")
.font(.title2)
VStack(alignment: .leading, spacing: 4) {
Text("Automation Permission")
.font(.headline)
Text("Required to launch and control terminal applications")
.font(.caption)
.foregroundColor(.secondary)
}
Spacer()
}
if appleScriptManager.hasPermission { if appleScriptManager.hasPermission {
HStack { HStack {
Image(systemName: "checkmark.circle.fill") Image(systemName: "checkmark.circle.fill")
@ -295,26 +281,8 @@ private struct RequestPermissionsPageView: View {
.buttonStyle(.borderedProminent) .buttonStyle(.borderedProminent)
.controlSize(.large) .controlSize(.large)
} }
}
.padding()
.background(Color(NSColor.controlBackgroundColor))
.cornerRadius(8)
// Accessibility permission // Accessibility permission
VStack(spacing: 12) {
HStack {
Image(systemName: "accessibility")
.font(.title2)
VStack(alignment: .leading, spacing: 4) {
Text("Accessibility Permission")
.font(.headline)
Text("Required for terminals like Ghostty that need keystroke input")
.font(.caption)
.foregroundColor(.secondary)
}
Spacer()
}
if hasAccessibilityPermission { if hasAccessibilityPermission {
HStack { HStack {
Image(systemName: "checkmark.circle.fill") Image(systemName: "checkmark.circle.fill")
@ -331,10 +299,6 @@ private struct RequestPermissionsPageView: View {
.controlSize(.large) .controlSize(.large)
} }
} }
.padding()
.background(Color(NSColor.controlBackgroundColor))
.cornerRadius(8)
}
} }
} }
.frame(maxWidth: .infinity, maxHeight: .infinity) .frame(maxWidth: .infinity, maxHeight: .infinity)