Commit 2b03dad
Fix UseHighContrast to use UISettings.ColorValuesChanged instead of broken API
AccessibilitySettings.HighContrastChanged always throws COMException
0x80070490 (ERROR_NOT_FOUND) in WinUI 3 desktop apps because it requires a
CoreWindow that doesn't exist in the HWND-based window model.
Replace with UISettings.ColorValuesChanged which fires reliably for
high-contrast toggles and palette changes. This is the same approach
ReactorHost.OnColorValuesChanged already uses for charting state.
Also:
- Remove redundant HighContrastChanged subscription from ReactorHost
(OnColorValuesChanged already re-reads high contrast state)
- Delete RenderContextUserCallbackEtwBridgeTests (test removed swallowing behavior)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7eccb9c commit 2b03dad
3 files changed
Lines changed: 21 additions & 150 deletions
File tree
- src/Reactor
- Core
- Hosting
- tests/Reactor.Tests/Diagnostics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | | - | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
804 | 807 | | |
805 | 808 | | |
806 | | - | |
| 809 | + | |
| 810 | + | |
807 | 811 | | |
808 | | - | |
| 812 | + | |
| 813 | + | |
809 | 814 | | |
810 | | - | |
811 | | - | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
812 | 818 | | |
813 | 819 | | |
814 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
815 | 823 | | |
816 | | - | |
817 | | - | |
818 | | - | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
819 | 827 | | |
820 | 828 | | |
821 | 829 | | |
822 | 830 | | |
823 | 831 | | |
824 | 832 | | |
825 | 833 | | |
826 | | - | |
| 834 | + | |
| 835 | + | |
827 | 836 | | |
828 | 837 | | |
829 | 838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
411 | 410 | | |
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
| 417 | + | |
| 418 | + | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| |||
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | 863 | | |
872 | 864 | | |
873 | 865 | | |
| |||
929 | 921 | | |
930 | 922 | | |
931 | 923 | | |
932 | | - | |
933 | | - | |
934 | 924 | | |
935 | 925 | | |
936 | 926 | | |
| |||
Lines changed: 0 additions & 128 deletions
This file was deleted.
0 commit comments