[PR #3060] Indicate which pane is focused with the Accent color on the pan… #25235

Open
opened 2026-01-31 09:08:09 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/3060

State: closed
Merged: Yes


Summary of the Pull Request

Adds a small border with the accent color to indicate a pane is focused

PR Checklist

Detailed Description of the Pull Request / Additional comments

I've removed the simple Grid we were using as the pane separator, and replaced it with a Border that might appear on any side of a pane.

When we add a split, we'll create each child with one of the Border flags set (each child with one of a pair of flags). E.g. creating a horizontal split creates one child with the Top border, and another with the Bottom.

Then, if one of those panes is split, it will pass it's border flag to is new children, with the additional flag set. So adding another Vertical split to the above scenario would create a set of panes with either (Top|Left, Top|Right) or (Bottom|Left, Bottom|Right) borders set, depending on which pane was split.

Validation Steps Performed

Some playing with it, but honestly it needs more for me to be totally confident.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/3060 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Adds a small border with the accent color to indicate a pane is focused <img src="https://user-images.githubusercontent.com/18356694/66218711-560e4b80-e68f-11e9-85b0-1f387d35bb92.png" width="480"> <img src="https://user-images.githubusercontent.com/18356694/66218757-6f16fc80-e68f-11e9-8d39-db9ab748c4de.png" width="480"> <img src="https://user-images.githubusercontent.com/18356694/66219194-55c28000-e690-11e9-9835-8b5212e70e8a.png" width="480"> ## PR Checklist * [x] Closes #994 * [x] I work here * [😢] Tests added/passed * [n/a] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments I've removed the simple Grid we were using as the pane separator, and replaced it with a Border that might appear on any side of a pane. When we add a split, we'll create each child with one of the `Border` flags set (each child with one of a pair of flags). E.g. creating a horizontal split creates one child with the `Top` border, and another with the `Bottom`. Then, if one of those panes is split, it will pass it's border flag to is new children, with the additional flag set. So adding another Vertical split to the above scenario would create a set of panes with either (`Top|Left`, `Top|Right`) or (`Bottom|Left`, `Bottom|Right`) borders set, depending on which pane was split. ## Validation Steps Performed Some playing with it, but honestly it needs more for me to be totally confident.
claunia added the pull-request label 2026-01-31 09:08:09 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25235