Make the tab bar appearance closer to the native look

This commit is contained in:
Soh Satoh
2025-01-25 23:20:06 +09:00
parent ba919c7f6f
commit 243641e7b0
2 changed files with 7 additions and 7 deletions

View File

@ -30,9 +30,10 @@ struct QuickTerminalTabBarView: View {
} }
Divider() Divider()
.background(Color(NSColor.separatorColor))
Image(systemName: "plus") Image(systemName: "plus")
.foregroundColor(.gray) .foregroundColor(Color(NSColor.secondaryLabelColor))
.padding(.horizontal, 8) .padding(.horizontal, 8)
.frame(width: 50) .frame(width: 50)
.contentShape(Rectangle()) .contentShape(Rectangle())
@ -43,7 +44,7 @@ struct QuickTerminalTabBarView: View {
.help("New Tab") .help("New Tab")
} }
.frame(height: 32) .frame(height: 32)
.background(Color(NSColor.windowBackgroundColor)) .background(Color(NSColor.controlBackgroundColor))
} }
} }

View File

@ -26,15 +26,14 @@ struct QuickTerminalTabItemView: View {
.animation(.easeInOut, value: isHovered || isSelected) .animation(.easeInOut, value: isHovered || isSelected)
} }
.padding(.horizontal, 8) .padding(.horizontal, 8)
.frame(height: 28) .frame(height: 32)
.background( .background(
RoundedRectangle(cornerRadius: 6) Rectangle()
.fill( .fill(
isSelected && !isSingleTab isSelected && !isSingleTab
? Color(NSColor.selectedContentBackgroundColor) ? Color(NSColor.windowBackgroundColor)
: (isHovered ? Color(NSColor.gridColor) : Color.clear)) : (isHovered ? Color(red: 42/255, green: 42/255, blue: 42/255) : Color(NSColor.controlBackgroundColor)))
) )
.padding(.horizontal, 2)
.onHover { hovering in .onHover { hovering in
isHovered = hovering isHovered = hovering
} }