-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Polish the Background Image settings #8778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This doesn't work as I'd hope though. If you manually type in `desktopWallpaper`, then the text box is hidden permanently. This is because the StringIsNotDesktopConverter imediately can tell that the string is desktopWallpaper, and hides the text box, but it _doesn't_ update the checkbox. We're going to have to get creative.
carlos-zamora
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind adding some pics or a gif to see what it looks like? I think I can visualize it but it'd be nice to have in the PR body.
Love the changes to converters!
Mostly nits here.
| return result; | ||
| } | ||
|
|
||
| #define DECLARE_CONVERTER(nameSpace, className) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well use DECLARE_CONVERTER on all the other converter header files. For consistency.
| // Cache the original BG image path. If the user clicks "Use desktop | ||
| // wallpaper", then un-checks it, this is the string we'll restore to | ||
| // them. | ||
| if (BackgroundImagePath() != L"desktopWallpaper") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should L"desktopWallpaper" be a static constexpr std::wstring_view?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That way you just reference it below in UseDesktopBGImage() too
carlos-zamora
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realized something. Make sure to disable the "hide background image settings" behavior in the "Base Layer" page. There's a good use case for customizing those settings in "Base Layer" even though you don't have a background image set.
Shouldn't be too difficult. There's an IsBaseLayer bool exposed off of the ProfileViewModel that you can use to check this.
|
I think I would prefer if the checkbox was immediately below the textbox for the path, and that the textbox and button are disabled when the checkbox is set (rather than hidden), this gets us
Thoughts? |
|
carlos-zamora
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
## Summary of the Pull Request Two parts: * Hide the BG image settings when no image is specified * Add a checkbox for "Use desktop wallpaper". When that's checked, the BG image path input is hidden. Unchecking that box restores the path to what it was before. ## PR Checklist * [x] Closes microsoft#8763 * [x] I work here ## Validation Steps Performed Tested manually



Summary of the Pull Request
Two parts:
PR Checklist
Validation Steps Performed
Tested manually