terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Setting to set pane highlight active, inactive and broadcast color

Open Techypanda opened this issue 6 months ago • 4 comments

Summary of the Pull Request

This commit adds a new setting in which you can configure the active highlight color of panes as well as inactive and broadcast. This will only happen if configured otherwise uses the default as suggested by https://github.com/microsoft/terminal/issues/3061

References and Relevant Issues

https://github.com/microsoft/terminal/issues/3061

Detailed Description of the Pull Request / Additional comments

When modifying the settings you can now set pane key to have the following properties:

  • "activeBorderColor"
  • "inactiveBorderColor"
  • "broadcastBorderColor" This allows for more configuration of the windows terminal

Validation Steps Performed

Built Locally, Ran Locally and configured a profile with the following theme:

"themes": 
[
    {
        "name": "Under Construction",
        "tab": {
            "background": "#FFFF00FF",
            "iconStyle": "default",
            "showCloseButton": "always",
            "unfocusedBackground": "#88440088"
        },
        "tabRow": {
            "background": "#FF8800FF",
            "unfocusedBackground": "#202020FF"
        },
        "window": {
            "applicationTheme": "light",
            "experimental.rainbowFrame": false,
            "frame": null,
            "unfocusedFrame": null,
            "useMica": true
        },
        "pane": {
            "activeBorderColor": "#13A10E",
            "inactiveBorderColor": "#61D6D6"
        }
    }
]

PR Checklist

  • [x] Closes #3061
  • [ ] Tests added/passed (None added, can't see how to unit test this but happy to add/dive deeper)
  • [ ] Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • [x] Schema updated (if necessary) -> I have modified to the best of my knowledge

Techypanda avatar May 27 '25 07:05 Techypanda

@check-spelling-bot Report

:red_circle: Please review

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

Unrecognized words (1)

unfocusedbrush

These words are not needed and should be removed abcd ABCDEFGHIJ abcdefghijk ABCDEFGHIJKLMNOPQRS ABCDEFGHIJKLMNOPQRST ABCDEFGHIJKLMNOPQRSTUVWXY allocs appium Argb asan autocrlf backported bytebuffer cac CLE codenav codepath commandline COMMITID componentization constness dealloc deserializers DISPATCHNOTIFY DTest entrypoints EVENTID FINDUP fuzzer hlocal hstring IInput Interner keyscan Munged numlock offboarded pids positionals Productize pseudoterminal remoting renamer roadmap ruleset SELECTALL somefile Stringable tearoff TODOs touchpad TREX Unregistering USERDATA vectorize viewports wsl

To accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the [email protected]:Techypanda/terminal.git repository on the pane-highlight-setting branch (:information_source: how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/v0.0.24/apply.pl' |
perl - 'https://github.com/microsoft/terminal/actions/runs/15268737071/attempts/1'

Errors (1)

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

:x: Errors Count
:x: ignored-expect-variant 3

See :x: Event descriptions for more information.

:pencil2: Contributor please read this

By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.

If the listed items are:

  • ... misspelled, then please correct them instead of using the command.
  • ... names, please add them to .github/actions/spelling/allow/names.txt.
  • ... APIs, you can add them to a file in .github/actions/spelling/allow/.
  • ... just things you're using, please add them to an appropriate file in .github/actions/spelling/expect/.
  • ... tokens you only need in one place and shouldn't generally be used, you can add an item in an appropriate file in .github/actions/spelling/patterns/.

See the README.md in each directory for more information.

:microscope: You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. :wink:

If the flagged items are :exploding_head: false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it, try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

github-actions[bot] avatar May 27 '25 07:05 github-actions[bot]

@microsoft-github-policy-service agree

Techypanda avatar May 27 '25 07:05 Techypanda

Downloaded the branch and played around with it for a bit. Looks and feels great!

Blocking mainly for the issue where "accent" and "terminalBackground" aren't handled properly.

Fixed in latest push can you retest when available? Thanks

Also don't forget to update the docs repo please

Can update the docs repo, will raise a PR there

Techypanda avatar Jun 04 '25 04:06 Techypanda

Found the bug with accent, it was because i wasnt picking accent key sorted that and all 3 being set to accent seems to work Also found the bug with terminalbackground, swapped to use Evaluate with backgroundBrush as TerminalTab uses (also fed this in and raised where this is used outside the updatePane method).

Techypanda avatar Jun 16 '25 11:06 Techypanda

/azp run

carlos-zamora avatar Jul 16 '25 18:07 carlos-zamora

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 16 '25 18:07 azure-pipelines[bot]

Documentation PR - https://github.com/MicrosoftDocs/terminal/pull/872

Techypanda avatar Jul 17 '25 00:07 Techypanda

Rebased & Ran Invoke-CodeFormat as i believe the failures were due to this

Techypanda avatar Jul 17 '25 00:07 Techypanda

@Techypanda If possible, please avoid force-pushing. Now we have to review the PR from scratch. 🙂

lhecker avatar Jul 21 '25 12:07 lhecker

/azp run

carlos-zamora avatar Jul 21 '25 22:07 carlos-zamora

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 21 '25 22:07 azure-pipelines[bot]

Just wanted to drop a comment to say thank you so much for tackling this! I'm big on tiling and the pane highlighting has been super annoying for a while, would be great to be able to toggle this off. :)

JacquardCauseway avatar Oct 20 '25 13:10 JacquardCauseway