From 243641e7b01230eb17d290fdbe5ae8d515dad5f8 Mon Sep 17 00:00:00 2001 From: Soh Satoh <20023945+sohsatoh@users.noreply.github.com> Date: Sat, 25 Jan 2025 23:20:06 +0900 Subject: [PATCH] Make the tab bar appearance closer to the native look --- .../QuickTerminal/Tab/QuickTerminalTabBarView.swift | 5 +++-- .../QuickTerminal/Tab/QuickTerminalTabItemView.swift | 9 ++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabBarView.swift b/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabBarView.swift index 890a9fdf5..2bcf4df6f 100644 --- a/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabBarView.swift +++ b/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabBarView.swift @@ -30,9 +30,10 @@ struct QuickTerminalTabBarView: View { } Divider() + .background(Color(NSColor.separatorColor)) Image(systemName: "plus") - .foregroundColor(.gray) + .foregroundColor(Color(NSColor.secondaryLabelColor)) .padding(.horizontal, 8) .frame(width: 50) .contentShape(Rectangle()) @@ -43,7 +44,7 @@ struct QuickTerminalTabBarView: View { .help("New Tab") } .frame(height: 32) - .background(Color(NSColor.windowBackgroundColor)) + .background(Color(NSColor.controlBackgroundColor)) } } diff --git a/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabItemView.swift b/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabItemView.swift index 2376a1841..ec0afbd5a 100644 --- a/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabItemView.swift +++ b/macos/Sources/Features/QuickTerminal/Tab/QuickTerminalTabItemView.swift @@ -26,15 +26,14 @@ struct QuickTerminalTabItemView: View { .animation(.easeInOut, value: isHovered || isSelected) } .padding(.horizontal, 8) - .frame(height: 28) + .frame(height: 32) .background( - RoundedRectangle(cornerRadius: 6) + Rectangle() .fill( isSelected && !isSingleTab - ? Color(NSColor.selectedContentBackgroundColor) - : (isHovered ? Color(NSColor.gridColor) : Color.clear)) + ? Color(NSColor.windowBackgroundColor) + : (isHovered ? Color(red: 42/255, green: 42/255, blue: 42/255) : Color(NSColor.controlBackgroundColor))) ) - .padding(.horizontal, 2) .onHover { hovering in isHovered = hovering }