[PR #8468] Represent BackgroundImageAlignment as ConvergedAlignment #27205

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

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

State: closed
Merged: Yes


backgroundImageAlignment is exposed as 1 setting in the JSON, but
stored as two separate settings (HorizontalAlignment and
VerticalAlignment). This PR introduces ConvergedAlignment as a flag
enum that can be a combination of horizontal and vertical Alignments.
TSM now solely uses this ConvergedAlignment, and TerminalSettings
performs a conversion from this new enum to the traditional
HorizontalAlignment and VerticalAlignment for consumption.

Validation Steps Performed

Manually tested changing the backgroundImageAlignment in my
settings.json and checking if the image updated appropriately.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8468 **State:** closed **Merged:** Yes --- `backgroundImageAlignment` is exposed as 1 setting in the JSON, but stored as two separate settings (`HorizontalAlignment` and `VerticalAlignment`). This PR introduces `ConvergedAlignment` as a flag enum that can be a combination of horizontal and vertical Alignments. TSM now solely uses this `ConvergedAlignment`, and TerminalSettings performs a conversion from this new enum to the traditional `HorizontalAlignment` and `VerticalAlignment` for consumption. ## Validation Steps Performed Manually tested changing the `backgroundImageAlignment` in my settings.json and checking if the image updated appropriately.
claunia added the pull-request label 2026-01-31 09:20:38 +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#27205