[PR #8313] Bind BackgroundImageAlignment to Settings UI #27164

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

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

State: closed
Merged: Yes


Summary of the Pull Request

This binds backgroundImageAlignment to the Settings UI. A custom control was created for this (see Demo below). The implementation involves...

  • storing a reference to all the ToggleButtons
  • storing the ConvergedAlignment as a tag for each button
  • adding the same click handler for each of these buttons, that just clears all the other button states, and activates the current one.

References

#1564 - Settings UI

Demo

Background Image Alignment Control

Tested:

  • value matches JSON set one
  • clicking on selected value keeps the same button checked
  • clicking an unselected button works property
**Original Pull Request:** https://github.com/microsoft/terminal/pull/8313 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This binds `backgroundImageAlignment` to the Settings UI. A custom control was created for this (see Demo below). The implementation involves... - storing a reference to all the ToggleButtons - storing the `ConvergedAlignment` as a tag for each button - adding the same click handler for each of these buttons, that just clears all the other button states, and activates the current one. ## References #1564 - Settings UI ## Demo ![Background Image Alignment Control](https://user-images.githubusercontent.com/11050425/100955878-37daf000-34cc-11eb-9378-b73955d93aaf.png) Tested: - value matches JSON set one - clicking on selected value keeps the same button checked - clicking an unselected button works property
claunia added the pull-request label 2026-01-31 09:20:23 +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#27164