mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 18:11:39 +00:00
macos: make surface grab handle visible in light mode (#10111)
This commit is contained in:
@@ -15,13 +15,13 @@ extension Ghostty {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.fill(Color.white.opacity(isHovering || isDragging ? 0.15 : 0))
|
.fill(Color.primary.opacity(isHovering || isDragging ? 0.15 : 0))
|
||||||
.frame(height: handleHeight)
|
.frame(height: handleHeight)
|
||||||
.overlay(alignment: .center) {
|
.overlay(alignment: .center) {
|
||||||
if isHovering || isDragging {
|
if isHovering || isDragging {
|
||||||
Image(systemName: "ellipsis")
|
Image(systemName: "ellipsis")
|
||||||
.font(.system(size: 14, weight: .semibold))
|
.font(.system(size: 14, weight: .semibold))
|
||||||
.foregroundColor(.white.opacity(0.5))
|
.foregroundColor(.primary.opacity(0.5))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
|
|||||||
Reference in New Issue
Block a user