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
difficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandingkind/enhancementNew feature or requestplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/macos 🍏Categorizes an issue or PR as relevant to the macOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/styling 👔Categorizes an issue or PR as relevant to element styling
When this is implemented, the related Uno-specific TODO in BackdropMaterial.cs needs to be removed (and replaced with the original WinUI implementation)
While initial support for ActualTheme and ActualThemeChanged is added in #6655, it will need further improvements when this is implemented. Specifically consider the following scenario:
OS theme is set to light and App does not explicitly set RequestedTheme
On MainPage.Loaded a Border is created. Its ActualTheme should match application theme
We store the border instance in a field like _border, but do not add it to the visual tree.
We set root element's RequestedTheme to Dark
Now the _border should still have ActualTheme of Light!
Only when the _border is added to the visual tree, its ActualTheme will switch to Dark and ActualThemeChanged is triggered.
However - the following scenario should work as well:
OS theme is set to light and App does not explicitly set RequestedTheme
On MainPage.Loaded a Border is created. Its ActualTheme should match application theme
We store the border instance in a field like _border, but do not add it to the visual tree.
We switch the OS theme to Dark
No ActualThemeChanged event is triggered automatically.
When ActualTheme is queried, ActualThemeChanged is triggered, and the new theme is Dark
ActualThemeChanged event is triggered on theme change automatically only for elements which are part of the visual tree, others trigger it only when explicitly queried.
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/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandingkind/enhancementNew feature or requestplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/macos 🍏Categorizes an issue or PR as relevant to the macOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/styling 👔Categorizes an issue or PR as relevant to element styling
Activity
6 remaining items
MartinZikmund commentedon Aug 1, 2021
When this is implemented, the related Uno-specific TODO in
BackdropMaterial.csneeds to be removed (and replaced with the original WinUI implementation)MartinZikmund commentedon Aug 5, 2021
While initial support for
ActualThemeandActualThemeChangedis added in #6655, it will need further improvements when this is implemented. Specifically consider the following scenario:RequestedThemeMainPage.LoadedaBorderis created. ItsActualThemeshould match application theme_border, but do not add it to the visual tree.RequestedThemetoDark_bordershould still haveActualThemeofLight!_borderis added to the visual tree, itsActualThemewill switch to Dark andActualThemeChangedis triggered.However - the following scenario should work as well:
RequestedThemeMainPage.LoadedaBorderis created. ItsActualThemeshould match application theme_border, but do not add it to the visual tree.DarkActualThemeChangedevent is triggered automatically.ActualThemeis queried,ActualThemeChangedis triggered, and the new theme isDarkActualThemeChangedevent is triggered on theme change automatically only for elements which are part of the visual tree, others trigger it only when explicitly queried.MartinZikmund commentedon Apr 14, 2023
The changes in #11983 have introduced
DefaultTextForegroundThemeBrushsupport, which also needs to adhere to the element-level theme!MartinZikmund commentedon Jan 30, 2024
When supported, native date and time pickers should follow the picker's actual theme instead of the application one
See PRs for
DatePickerFlyoutandTimePickerFlyoutdon't follow theme #15263DatePickerFlyoutandTimePickerFlyoutdon't follow theme #15265mcNets commentedon Jul 15, 2024
@MartinZikmund you should consider Desktop apps too, it isn't in the platforms list.
MartinZikmund commentedon Jan 31, 2025
The initial attempt for this is in #3387, but needs to be reworked on latest master, as there have been significant changes
github-actions commentedon Apr 30, 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.