[Light Switch] Switch desktop wallpapers with the Light/Dark mode (#42624)

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.


<img width="2010" height="1274" alt="2025-10-26 235808"
src="https://github.com/user-attachments/assets/b3eda45a-09f3-43bc-b87c-1b05bc308c24"
/>


- [x] Closes: #42436
- [ ] **Communication:** I've discussed this with core contributors
already. If the work hasn't been agreed, this work might be rejected
- [ ] **Tests:** Added/updated and all pass
- [x] **Localization:** All end-user-facing strings can be localized
- [ ] **Dev docs:** Added/updated
- [ ] **New binaries:** Added on the required places
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx

---------

Co-authored-by: Jaylyn Barbee <51131738+Jaylyn-Barbee@users.noreply.github.com>
This commit is contained in:
Yexuan Xiao
2026-01-07 01:55:55 +08:00
committed by GitHub
parent d9709b2b91
commit 19c9b4e1fd
25 changed files with 1118 additions and 310 deletions

View File

@@ -5456,6 +5456,54 @@ To record a specific window, enter the hotkey with the Alt key in the opposite m
<data name="LightSwitch_SunsetTooltip.Text" xml:space="preserve">
<value>Sunset</value>
</data>
<data name="LightSwitch_WallpaperExpander.Header" xml:space="preserve">
<value>Wallpaper changes with the color mode</value>
</data>
<data name="LightSwitch_StyleFill.Content" xml:space="preserve">
<value>Fill</value>
</data>
<data name="LightSwitch_StyleFit.Content" xml:space="preserve">
<value>Fit</value>
</data>
<data name="LightSwitch_StyleStretch.Content" xml:space="preserve">
<value>Stretch</value>
</data>
<data name="LightSwitch_StyleTile.Content" xml:space="preserve">
<value>Tile</value>
</data>
<data name="LightSwitch_StyleCenter.Content" xml:space="preserve">
<value>Center</value>
</data>
<data name="LightSwitch_StyleSpan.Content" xml:space="preserve">
<value>Span</value>
</data>
<data name="LightSwitch_WallpaperBrowse.Content" xml:space="preserve">
<value>Browse</value>
</data>
<data name="LightSwitch_WallpaperLight.Text" xml:space="preserve">
<value>Light:</value>
</data>
<data name="LightSwitch_WallpaperDark.Text" xml:space="preserve">
<value>Dark:</value>
</data>
<data name="LightSwitch_WallpaperImageUnavailable.Text" xml:space="preserve">
<value>Image preview unavailable, may not exist or is corrupted</value>
</data>
<data name="LightSwitch_WallpaperSelect.Header" xml:space="preserve">
<value>Choose images for different modes</value>
</data>
<data name="LightSwitch_WallpaperStyle.Header" xml:space="preserve">
<value>Choose fits for your desktop images</value>
</data>
<data name="LightSwitch_WallpaperVirtualDesktop.Header" xml:space="preserve">
<value>Apply wallpaper to all virtual desktops</value>
</data>
<data name="LightSwitch_VirtualDesktopInfo.Text" xml:space="preserve">
<value>Apply wallpaper to all virtual desktops is an experimental feature, only supported on Windows 24H2 and later versions. It may become unavailable or cause errors due to Windows updates. If you find that the LightSwitch service is not running properly after enabling this feature, please disable the feature and file a bug report with your Windows version.</value>
</data>
<data name="LightSwitch_DetectWindows24H2Info.Text" xml:space="preserve">
<value>It has been detected that your Windows version is earlier than 24H2. On such versions, switching to another virtual desktop may cause the wallpaper to revert. If you are using virtual desktops, it is not recommended to enable this feature. Alternatively, upgrade your Windows version to 24H2 or later for the best experience.</value>
</data>
<data name="Close_NavViewItem.Content" xml:space="preserve">
<value>Close PowerToys</value>
<comment>Don't loc "PowerToys"</comment>