mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00

This resolves #2685. ## Changes * Created `SelectionColor` tagged union that can take a `Color`, `cell-foreground`, or `cell-background` * Used the new union to implement the feature for Metal and OpenGL * Removed the use of `invert_selection_fg_bg` during rendering as suggested in the issue ## Demo macOS: https://github.com/user-attachments/assets/b5b2db83-bb62-4929-8e3c-870a1e1a7a5c Ubuntu: https://github.com/user-attachments/assets/259dd707-d9d9-4590-8f3c-a67ccdef34bc Any feedback would be helpful, I'm sure there's a lot of room for improvement here.