mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-31 04:39:01 +00:00
macOS: change split drag's point style to match HIG (#13433)
<img width="637" height="373" alt="image"
src="https://github.com/user-attachments/assets/bdcd25f1-7755-47d0-8582-26ea8a00a0ca"
/>
Previously there's mismatch with
[`CursorStyle.cursor`](15484b607e/macos/Sources/Helpers/Cursor.swift (L74-L109))
>
https://developer.apple.com/design/human-interface-guidelines/pointing-devices#Pointers
This commit is contained in:
@@ -107,12 +107,12 @@ enum BackportPointerStyle {
|
||||
case .horizontalText: return .horizontalText
|
||||
case .verticalText: return .verticalText
|
||||
case .link: return .link
|
||||
case .resizeLeft: return .frameResize(position: .trailing, directions: [.inward])
|
||||
case .resizeRight: return .frameResize(position: .leading, directions: [.inward])
|
||||
case .resizeUp: return .frameResize(position: .bottom, directions: [.inward])
|
||||
case .resizeDown: return .frameResize(position: .top, directions: [.inward])
|
||||
case .resizeUpDown: return .frameResize(position: .top)
|
||||
case .resizeLeftRight: return .frameResize(position: .trailing)
|
||||
case .resizeLeft: return .columnResize(directions: .leading)
|
||||
case .resizeRight: return .columnResize(directions: .trailing)
|
||||
case .resizeUp: return .rowResize(directions: .up)
|
||||
case .resizeDown: return .rowResize(directions: .down)
|
||||
case .resizeUpDown: return .rowResize
|
||||
case .resizeLeftRight: return .columnResize
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user