Skip to content

[Light Switch] Switch desktop wallpapers with the Light/Dark mode#44598

Open
YexuanXiao wants to merge 14 commits intomicrosoft:mainfrom
YexuanXiao:main
Open

[Light Switch] Switch desktop wallpapers with the Light/Dark mode#44598
YexuanXiao wants to merge 14 commits intomicrosoft:mainfrom
YexuanXiao:main

Conversation

@YexuanXiao
Copy link
Copy Markdown
Contributor

I'm not sure how to set the AccentColor and ColorizationColor that is consistent with the Settings App, and the same goes for switching themes. If anyone has a solution, please let me know.

2025-10-26 235808

@lei9444
Copy link
Copy Markdown
Contributor

lei9444 commented Jan 8, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Collaborator

@Jay-o-Way Jay-o-Way left a comment

Choose a reason for hiding this comment

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

Few things

Comment thread src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml Outdated
Comment thread src/settings-ui/Settings.UI/SettingsXAML/Views/LightSwitchPage.xaml Outdated
Comment thread src/settings-ui/Settings.UI/ViewModels/LightSwitchViewModel.cs Outdated
@YexuanXiao YexuanXiao requested a review from Jay-o-Way January 9, 2026 13:42
@Jay-o-Way

This comment was marked as resolved.

@YexuanXiao
Copy link
Copy Markdown
Contributor Author

Sorry, I meant only BoolToVisibilityConverter is built-in. If you need the negation converter, you should keep that.

I simply tested it and it works.

BoolNegationConverter

The XAML I wrote no longer needs it.

@yeelam-gordon
Copy link
Copy Markdown
Contributor

🔍 Automated PR Review Summary

Step Severity Finding
01-functionality 🔴 high Problem: SetWallpaperViaIDesktopWallpaper returns when SUCCEEDED(e) for b...
01-functionality 🟡 medium Problem: IsLightWallpaperValid and IsDarkWallpaperValid update backing fi...
03-performance 🟡 medium Problem: wallpaper import reads the entire source file into memory (`ReadBuff...
04-accessibility 🟡 medium Problem: the two wallpaper preview Image controls are introduced without ex...
04-accessibility 🟢 low Problem: both wallpaper browse buttons resolve to the same user-facing label ...
05-security 🟡 medium Vulnerability: DeleteFile relies on raw StartsWith(dataPath) without cano...
05-security 🟡 medium Vulnerability: unvalidated wallpaper style values can reach `default: std::te...
06-localization 🟢 low Localization quality issue: several newly added short/ambiguous UI strings (f...
09-solid-design 🟡 medium SOLID violation (SRP + DIP): LightSwitchViewModel now combines presentation...
10-repo-patterns 🟡 medium Logging pattern deviation: Logger::error is called with an extra argument b...
10-repo-patterns 🟡 medium Repository logging/error-handling pattern deviation: multiple catch blocks sw...
11-docs-automation 🟢 low Documentation gap: this PR introduces new user-visible wallpaper configuratio...
12-code-comments 🟡 medium Comment accuracy issue: `// Prevent attackers from damaging files through spe...

Review generated by pr-review skill. See Generated Files/prReview/44598/ for full details.

@YexuanXiao
Copy link
Copy Markdown
Contributor Author

@yeelam-gordon Can you provide more detailed information? The explanation got cut off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One should be able to select themes for lightSwitch (or at least wallpapers)

6 participants