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()
|
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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user