Skip to content

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented May 12, 2022

Fixes the following issues:

  • desktopWallpaper not working
  • switching tabs/panes causes the background to flicker
  • settings preview having a transparent background

PR Checklist

Validation Steps Performed

Tested the 3 cases above. ✅

@ghost ghost added Area-Settings Issues related to settings and customizability, for console or terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-Terminal The new Windows Terminal. labels May 12, 2022
if (imageSource == nullptr ||
imageSource.UriSource() == nullptr ||
imageSource.UriSource().RawUri() != imageUri.RawUri())
!imageSource.UriSource().Equals(imageUri))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RawUri() returns the string the URI was constructed with, not the normalized variant.
This can result in imageSource.UriSource().RawUri() being file:///C:/..., while imageUri.RawUri() is C:\\....

void TerminalPage::_SetBackgroundImage(const winrt::Microsoft::Terminal::Settings::Model::IAppearanceConfig& newAppearance)
{
if (newAppearance.BackgroundImagePath().empty())
const auto path = newAppearance.ExpandedBackgroundImagePath();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh thanks

@carlos-zamora
Copy link
Member

@msftbot merge this in 5 minutes

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label May 12, 2022
@ghost
Copy link

ghost commented May 12, 2022

Hello @carlos-zamora!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Thu, 12 May 2022 22:48:19 GMT, which is in 5 minutes

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit 0630b18 into main May 12, 2022
@ghost ghost deleted the dev/lhecker/13002-use-bg-for-window branch May 12, 2022 22:49
carlos-zamora pushed a commit that referenced this pull request May 12, 2022
Fixes the following issues:
* `desktopWallpaper` not working
* switching tabs/panes causes the background to flicker
* settings preview having a transparent background

## PR Checklist
* [x] Closes #13002
* [x] I work here
* [x] Tests added/passed

## Validation Steps Performed
Tested the 3 cases above. ✅

(cherry picked from commit 0630b18)
Service-Card-Id: 81868221
Service-Version: 1.14
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Settings Issues related to settings and customizability, for console or terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues with experimental.useBackgroundImageForWindow

4 participants