Using nested ElementTheme
can set a wrong system bar color
#1222
Labels
O-Frequent
Affects or can be seen by most users regularly or impacts most users' first experience
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
Something isn't working: bugs, crashes, hangs and other reported problems
Steps to reproduce
Outcome
What did you expect?
The status bar icons to be visible and the navbar to have the right color.
What happened instead?
The status bar icons are not visible, the navbar uses the dark theme colors.
This happens because the
ElementTheme
composable sets the system bars colors when it's used, but we have no way to restore them to the previous ones when it exits the composition, or when a parent theme becomes the top most item.migration_screen_white_statusbar.mp4
I have only detected it here, but it can happen in other parts of the app where we force a dark theme.
Your phone model
OnePlus 6T
Operating system version
Android 11
Application version and app store
Element X (develop)
Homeserver
No response
Will you send logs?
No
Are you willing to provide a PR?
Yes
The text was updated successfully, but these errors were encountered: