Skip to content

Conversation

@davep
Copy link
Contributor

@davep davep commented Dec 21, 2022

This PR addresses #1369 by swallowing any ScreenStackError when attempting to update the styles within App.watch_dark; the idea being that if there isn't a screen, one will be coming soon, and the styles will get taken up then anyway.

This commit addresses Textualize#1369 by swallowing any `ScreenStackError` when
calling `refresh_css` after setting the -{dark,light}-mode class on the app.
The idea here being that if there is no screen, that's fine, the style will
be taken up once there is one.
@willmcgugan
Copy link
Member

Can we have a regression test that sets dark on load please.

@davep
Copy link
Contributor Author

davep commented Dec 21, 2022

Can we have a regression test that sets dark on load please.

Added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants