Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dark mode after textual update #445

Merged
merged 2 commits into from
Dec 5, 2024
Merged

Fix dark mode after textual update #445

merged 2 commits into from
Dec 5, 2024

Conversation

JoeZiminski
Copy link
Member

@JoeZiminski JoeZiminski commented Dec 4, 2024

Textual recently had a breaking change where they added a lot of new themes (looks pretty cool here, could expose some!)

The app.dark attribute is now unused and .theme is used instead. This PR now sets .theme to the appropriate values to reproduce the old behaviour.

Tests are failing due to #446, which will be merged soon. Changes in this PR are only minimal on the main code (around setting light / dark mode).

Copy link
Member

@niksirbi niksirbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT!

The new textual themes are cool! I vote for exposing the whole bunch (in a future PR), because, why not?

datashuttle/tui/app.py Outdated Show resolved Hide resolved
Co-authored-by: Niko Sirmpilatze <[email protected]>
@JoeZiminski JoeZiminski merged commit 2abb7f3 into main Dec 5, 2024
3 checks passed
@JoeZiminski JoeZiminski deleted the fix_dark_mode branch December 5, 2024 18:54
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