[Rendering] Font colors are hardcoded and some TextBlocks don't react to theme change

#9391 · open · 0 comments

View on GitHub ↗

Jay-o-Way

### Target Platforms Other ### SDK Version 2.2.4-beta ### Application Name Microsoft PowerToys ### Problem Description Coming from issue https://github.com/microsoft/PowerToys/issues/49435 Some text doesn't respond to theme change. I see that colors are hardcoded in https://github.com/microsoft/AdaptiveCards/blob/23b09872ec0f987ae427a69525d8f0fca256ab3f/source/dotnet/Library/AdaptiveCards/Rendering/ForegroundColorsConfig.cs For WinUI 3, I recommend to check and support/use theme resources, and to check the refresh behavior regarding the app theme switching. ### Screenshots See linked issue ### Card JSON ```JSON ? ``` ### Sample Code Language _No response_ ### Sample Code _No response_

Comments