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
Switching theme at runtime does not apply to visual states #3388
Run the app on Android in light theme, then switch to dark theme via the action center. Notice the page changes background and button changes its colors. However, when the button is pressed it "disappears" because it still uses the "light" theme of pressed visual state.
changed the title [-]Swithing theme at runtime does not apply to visual states[/-][+]Switching theme at runtime does not apply to visual states[/+]on Jun 23, 2020
Thanks for the poke Martin! Any idea why that text header might be failing to update? I know I missed the visual-state case, but it seems like there's another case I missed as well.
@davidjohnoliver Really hard to say, I just noticed that while most texts changed, this one didn't unless I restarted the app. I will check again later to confirm if I just didn't miss something.
Activity
MartinZikmund commentedon Jun 17, 2020
This is probably for @davidjohnoliver 😇
[-]Swithing theme at runtime does not apply to visual states[/-][+]Switching theme at runtime does not apply to visual states[/+]MartinZikmund commentedon Jul 2, 2020
Seems that it is not only with visual states - with the Messages sample app (https://github.com/MartinZikmund/messages-multiplatform-uno-sample) I have noticed that changing theme at runtime does not apply new text color to the "Messages" header on the right pane - I think I saw it on Android specifically. Also theme change at runtime on macOS seemed to crash the app, but I have a feeling that is a problem on my side :-D .
jeromelaban commentedon Jul 2, 2020
if you have a stack trace to share, that may help for similar issues.
MartinZikmund commentedon Jul 2, 2020
I rushed as it was like 2 AM so I did not capture it, but will retry and find it 👍
davidjohnoliver commentedon Jul 2, 2020
Thanks for the poke Martin! Any idea why that text header might be failing to update? I know I missed the visual-state case, but it seems like there's another case I missed as well.
MartinZikmund commentedon Jul 2, 2020
@davidjohnoliver Really hard to say, I just noticed that while most texts changed, this one didn't unless I restarted the app. I will check again later to confirm if I just didn't miss something.