From 70f11579c533ac6e438fd6cbe3cc023d6a9420f1 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Fri, 4 Jul 2025 12:44:31 +0100 Subject: [PATCH] use the accent color as teh tab header color change font sizes --- ShhShell/Views/Terminal/ShellTabView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ShhShell/Views/Terminal/ShellTabView.swift b/ShhShell/Views/Terminal/ShellTabView.swift index eac8970..4beb0c8 100644 --- a/ShhShell/Views/Terminal/ShellTabView.swift +++ b/ShhShell/Views/Terminal/ShellTabView.swift @@ -17,7 +17,6 @@ struct ShellTabView: View { @Environment(\.dismiss) var dismiss var foreground: Color { hostsManager.selectedTheme.foreground.suiColor } - var ansi7: Color { hostsManager.selectedTheme.ansi[6].suiColor.opacity(0.7) } var background: Color { hostsManager.selectedTheme.background.suiColor } var body: some View { @@ -49,7 +48,7 @@ struct ShellTabView: View { } .padding(.horizontal, 10) .padding(.bottom, 10) - .background(ansi7, ignoresSafeAreaEdges: .all) + .background(Color.accentColor, ignoresSafeAreaEdges: .all) .frame(height: 30) HStack(alignment: .center, spacing: 0) { @@ -59,7 +58,7 @@ struct ShellTabView: View { let selected: Bool = selectedID == id ZStack { Rectangle() - .fill(selected ? ansi7 : background) + .fill(selected ? .accentColor : background) HStack { Spacer() VStack { @@ -68,13 +67,14 @@ struct ShellTabView: View { .monospaced() .foregroundStyle(foreground) .opacity(0.7) - .font(.caption) + .font(.callout) } Text(container.sessions[id]!.handler.host.description) .foregroundStyle(foreground) .opacity(selected ? 1 : 0.7) .monospaced() .bold(selected) + .font(.caption) } Spacer() }