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()
.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))
}
}

View File

@ -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
}