[PR #12893] [MERGED] Add experimental setting to make bg images fit the whole tab #29280

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12893
Author: @nico-abram
Created: 4/12/2022
Status: Merged
Merged: 4/27/2022
Merged by: @undefined

Base: mainHead: uwu


📝 Commits (4)

  • be1cacf Add experimental setting to make bg images fit the whole tab
  • 6c4e58d Formatting
  • f5d6b1a Apply requested review changes
  • c3b165f Rename BgImageForWindow to UseBackgroundImageForWindow

📊 Changes

14 files changed (+120 additions, -8 deletions)

View changed files

📝 src/cascadia/TerminalApp/TabManagement.cpp (+18 -0)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+63 -0)
📝 src/cascadia/TerminalApp/TerminalPage.h (+2 -0)
📝 src/cascadia/TerminalApp/TerminalPage.xaml (+5 -1)
📝 src/cascadia/TerminalApp/pch.h (+1 -0)
📝 src/cascadia/TerminalControl/ControlCore.cpp (+1 -1)
📝 src/cascadia/TerminalControl/IControlSettings.idl (+1 -0)
📝 src/cascadia/TerminalControl/TermControl.cpp (+23 -5)
📝 src/cascadia/TerminalControl/TermControl.h (+1 -1)
📝 src/cascadia/TerminalSettingsModel/GlobalAppSettings.idl (+1 -0)
📝 src/cascadia/TerminalSettingsModel/MTSMSettings.h (+1 -0)
📝 src/cascadia/TerminalSettingsModel/TerminalSettings.cpp (+1 -0)
📝 src/cascadia/TerminalSettingsModel/TerminalSettings.h (+1 -0)
📝 src/cascadia/inc/ControlProperties.h (+1 -0)

📄 Description

Summary of the Pull Request

Fixes #6028
Setting is "experimental.useBackgroundImageForWindow"

References

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

PR Checklist

Validation Steps Performed

Set "experimental.useBackgroundImageForWindow": true and a bg image for one profile, then make splits and tabs and make sure the bg updates accordingly:
xqMUWpo1JK
I also did the same with the setting off to make sure it still works correctly and didn't break. And I made sure opening the settings tab does not crash or show the bg image.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/12893 **Author:** [@nico-abram](https://github.com/nico-abram) **Created:** 4/12/2022 **Status:** ✅ Merged **Merged:** 4/27/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `uwu` --- ### 📝 Commits (4) - [`be1cacf`](https://github.com/microsoft/terminal/commit/be1cacf4d10fdf4060528da119842485739d9292) Add experimental setting to make bg images fit the whole tab - [`6c4e58d`](https://github.com/microsoft/terminal/commit/6c4e58d9c0dedd1ffe98f94d47c393156997b9b2) Formatting - [`f5d6b1a`](https://github.com/microsoft/terminal/commit/f5d6b1a61611a087de521ee7a859177c5b5e0ea9) Apply requested review changes - [`c3b165f`](https://github.com/microsoft/terminal/commit/c3b165fb33bf2723a4ff5698fee3eb0ff7999b30) Rename BgImageForWindow to UseBackgroundImageForWindow ### 📊 Changes **14 files changed** (+120 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TabManagement.cpp` (+18 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+63 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+2 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.xaml` (+5 -1) 📝 `src/cascadia/TerminalApp/pch.h` (+1 -0) 📝 `src/cascadia/TerminalControl/ControlCore.cpp` (+1 -1) 📝 `src/cascadia/TerminalControl/IControlSettings.idl` (+1 -0) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+23 -5) 📝 `src/cascadia/TerminalControl/TermControl.h` (+1 -1) 📝 `src/cascadia/TerminalSettingsModel/GlobalAppSettings.idl` (+1 -0) 📝 `src/cascadia/TerminalSettingsModel/MTSMSettings.h` (+1 -0) 📝 `src/cascadia/TerminalSettingsModel/TerminalSettings.cpp` (+1 -0) 📝 `src/cascadia/TerminalSettingsModel/TerminalSettings.h` (+1 -0) 📝 `src/cascadia/inc/ControlProperties.h` (+1 -0) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Fixes #6028 Setting is "experimental.useBackgroundImageForWindow" <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References https://github.com/microsoft/terminal/issues/6028 <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [X] Closes #6028 * [X] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. I read CONTRIBUTING.md, but I'm not sure if a spec is needed for an experimental feature such as this one. * [ ] Schema updated. I added a JSON key, not sure where I need to update it. * [X] I've discussed this with core contributors already. Somewhat discussed in https://github.com/microsoft/terminal/issues/6028 <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here ## Detailed Description of the Pull Request / Additional comments --> <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Set ` "experimental.useBackgroundImageForWindow": true` and a bg image for one profile, then make splits and tabs and make sure the bg updates accordingly: ![xqMUWpo1JK](https://user-images.githubusercontent.com/24706838/162996037-ce2ec077-d0e8-43ab-ad5b-0e5c0354fc30.gif) I also did the same with the setting off to make sure it still works correctly and didn't break. And I made sure opening the settings tab does not crash or show the bg image. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:33:56 +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#29280