You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Chefs] [Skia] Changing theme colors text and images incorrectly #20905
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verification
If you change the theme of the Chefs app on any page past the welcome page, the colors aren't adjusted correctly. Specifically, the text remains the same and the image colors are not accurate (not exactly sure what's wrong). Some of the font icons seem weird as well.
Expected behavior 🎯
How to reproduce it (as minimally and precisely as possible) 🔬
This is actually a problem with ThemeResource bindings not updating when the theme changes. This was only appearing with Material themes but I managed to minimize the repro to be Material-free.
If you put this in the MergedDictionaries inside App.xaml
You'll notice that toggling the theme doesn't update the ThemeBindings for the TextBlock or the Image. It gets weirder; if you do this in a new app, it doesn't repro. If you put this in the WelcomePage of Chefs, it also doesn't repro. It only repros once you get past the WelcomePage (so starting from the LoginPage).
CC @kazo0, it is worth checking why Chefs goes to that unsupported code path in the first place, to avoid silently throwing unnecessarily (or maybe it will actually stop throwing now that StatusBar was implemented)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verification
Activity
ramezgerges commentedon Jun 30, 2025
@MartinZikmund Maybe related to #20747?
ramezgerges commentedon Jun 30, 2025
This is actually a problem with ThemeResource bindings not updating when the theme changes. This was only appearing with Material themes but I managed to minimize the repro to be Material-free.
If you put this in the MergedDictionaries inside App.xaml
And put this somewhere in the UI
You'll notice that toggling the theme doesn't update the ThemeBindings for the TextBlock or the Image. It gets weirder; if you do this in a new app, it doesn't repro. If you put this in the WelcomePage of Chefs, it also doesn't repro. It only repros once you get past the WelcomePage (so starting from the LoginPage).
cc. @kazo0
MartinZikmund commentedon Jul 2, 2025
@ramezgerges what is the exception that occurs in Chefs? I guess we should use both your fix and also fix the Chefs code not to throw too
ramezgerges commentedon Jul 2, 2025
@MartinZikmund It's a NotImplemented exception with StatusBar.
MartinZikmund commentedon Jul 2, 2025
CC @kazo0, it is worth checking why Chefs goes to that unsupported code path in the first place, to avoid silently throwing unnecessarily (or maybe it will actually stop throwing now that
StatusBarwas implemented)kazo0 commentedon Jul 2, 2025
@ramezgerges / @MartinZikmund this has already been fixed in latest toolkit dev package unoplatform/uno.toolkit.ui#1421
rajamatt commentedon Jul 2, 2025
Fixed with latest dev SDK version 6.1.0-dev.264, which uses latest toolkit version 7.1.0-dev.17.
Tested with:
Templates/SDK: 6.1.0-dev.264 (which uses Uno.Toolkit.WinUI version 7.1.0-dev.17)
Platform(s): Desktop, Android, Wasm
IDE: VS 2022 - 17.14.6
OS: Windows
github-actions commentedon May 6, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.