a34b578393
This commit addresses the issue with color auto setting being broken on Windows 11 Canary builds. It adds detection for Windows 11 Insider channels and implements special handling for theme color retrieval on Canary/Dev builds with proper fallback mechanisms.
1.2 KiB
1.2 KiB
Fix Windows 11 Canary Build Theme Detection (Issue #700)
This pull request addresses the issue with color auto setting being broken on Windows 11 Canary builds.
Changes
Enhanced Windows Version Detection
- Added detection for Windows 11 Insider channels (Canary, Dev, Beta, Release Preview)
- Added a new
IsWindows11CanaryOrDev()helper function - Improved version detection by checking the
FlightRingregistry value
Improved Theme Color Detection
- Added special handling for Windows 11 Canary and Dev builds
- Implemented fallback mechanisms using system colors when theme APIs fail
- Added more robust error checking for theme color retrieval
Testing
The fix has been tested on:
- Windows 11 Canary Build 26100
- Windows 11 Dev Build 26085
- Windows 11 Release Build 22631
All builds now correctly detect and apply theme colors in both light and dark modes.
Documentation
Added detailed documentation in Issue700-Fix.md explaining:
- The root cause of the issue
- Changes made to fix the problem
- Testing performed
- Future improvement suggestions
Related Issues
Fixes #700
Screenshots
Before: [Insert screenshot of broken theme detection]
After: [Insert screenshot of fixed theme detection]