From 272bd9b7555698908760b4c7e3dfd28f1cc126b1 Mon Sep 17 00:00:00 2001 From: Stefano Bertagno Date: Sat, 22 Aug 2026 14:31:46 +0200 Subject: [PATCH] Make the terminal find bar transparent over the window chrome The docked find bar drew an opaque bar material and a solid text-field fill, so it read as a white slab instead of letting the window tint and blur show through like the tab strip above it. Drop the bar background, fill the field with the quaternary style, and align the field height, font, and magnifier scale with the bar's small controls. --- supacode/Features/Terminal/Views/TerminalFindBar.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/supacode/Features/Terminal/Views/TerminalFindBar.swift b/supacode/Features/Terminal/Views/TerminalFindBar.swift index c890330c4..c52f5447c 100644 --- a/supacode/Features/Terminal/Views/TerminalFindBar.swift +++ b/supacode/Features/Terminal/Views/TerminalFindBar.swift @@ -66,7 +66,7 @@ struct TerminalFindBar: View { // One height for the field and the controls so nothing sits taller than a // small bordered button. - private let controlHeight: CGFloat = 22 + private let controlHeight: CGFloat = 20 var body: some View { HStack(spacing: 8) { @@ -109,7 +109,6 @@ struct TerminalFindBar: View { .padding(.horizontal, 8) .padding(.vertical, 6) .frame(maxWidth: .infinity) - .background(.bar) .overlay(alignment: .bottom) { Divider() } @@ -223,6 +222,7 @@ private struct FindSearchField: View { var body: some View { HStack(spacing: 4) { Image(systemName: "magnifyingglass") + .imageScale(.small) .foregroundStyle(.secondary) .accessibilityHidden(true) @@ -252,7 +252,7 @@ private struct FindSearchField: View { .frame(height: height) .background( RoundedRectangle(cornerRadius: 6, style: .continuous) - .fill(Color(nsColor: .textBackgroundColor)) + .fill(.quaternary) ) } } @@ -293,7 +293,7 @@ private struct GhosttySearchField: NSViewRepresentable { field.usesSingleLineMode = true field.lineBreakMode = .byTruncatingTail field.cell?.isScrollable = true - field.font = .systemFont(ofSize: NSFont.systemFontSize, weight: .regular) + field.font = .systemFont(ofSize: NSFont.smallSystemFontSize, weight: .regular) return field }