Files
zed/crates/git_ui
Parker Loflin d5b6a7f1ec git_ui: Match git graph selection colors (#67320)
## Summary

Clicking a commit's text focuses the table, but the Refs and Graph
columns check only the graph's focus handle, so they paint the unfocused
selection color. They now check both handles, as the table rows do.

Closes #65249

## Testing

- To reproduce, open the Git Graph and click a commit's description.
- Tested on Linux. The whole row uses the focused color after clicking
the Description, Date, or Graph column, and the unfocused color after
focusing search.
- `test_selected_row_color_matches_across_columns` fails without this
change.
- `cargo test -p git_ui --lib` and `./script/clippy -p git_ui` pass.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [x] Tests cover the new or changed behavior.

Release Notes:

- Fixed Git Graph selection colors not matching across columns



https://github.com/user-attachments/assets/96d64a5b-7c0b-4121-a2b0-c08ffe28505c
2026-11-23 11:26:27 +00:00
..