mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Make the tab bar appearance closer to the native look
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user