This commit is contained in:
2026-10-10 14:54:39 +02:00
parent a0b3ef9975
commit 499fcd12ca
27 changed files with 435 additions and 46 deletions
@@ -251,6 +251,7 @@ private struct CollapseButton: View {
.background(hovering ? Palette.hover : Color.clear, in: RoundedRectangle(cornerRadius: Metrics.radiusSmall))
.overlay(RoundedRectangle(cornerRadius: Metrics.radiusSmall).stroke(Palette.raised, lineWidth: Metrics.hairline))
.contentShape(Rectangle())
.pointerHand()
.onTapGesture(perform: action)
.onHover { hovering = $0 }
.animation(Metrics.colorTransition, value: hovering)
@@ -116,6 +116,7 @@ struct SymbolPopupView: View {
}
.id(index)
.onHover { if $0 { highlighted = index } }
.pointerHand()
.onTapGesture { open(SymbolTarget(path: def.path, line: def.line)) }
}
ForEach(Array(lookup.definitions.enumerated()), id: \.offset) { _, def in relations(def) }
@@ -133,6 +134,7 @@ struct SymbolPopupView: View {
.padding(.top, 8)
.padding(.bottom, 2)
.contentShape(Rectangle())
.pointerHand()
.onTapGesture { if let first = group.hits.first { open(SymbolTarget(path: group.path, line: first.line)) } }
case let .hit(path, hit, index):
SymbolRow(isHighlighted: highlighted == index) {
@@ -147,6 +149,7 @@ struct SymbolPopupView: View {
}
.id(index)
.onHover { if $0 { highlighted = index } }
.pointerHand()
.onTapGesture { open(SymbolTarget(path: path, line: hit.line)) }
}
}
@@ -244,6 +247,7 @@ private struct SymbolChip: View {
.overlay(RoundedRectangle(cornerRadius: 3).stroke(lit ? Palette.amberKeycapBorder : Palette.raised, lineWidth: Metrics.hairline))
.contentShape(Rectangle())
.onHover { hovering = $0 }
.pointerHand(known)
.onTapGesture { if known { follow() } }
}
}