-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BUG] Text Color Not Adapting to Dark Mode in Windows 11 Terminal #3227
Comments
Only the default foreground and background colors behave this way. The terminal will pick the appropriate shade, but some combinations are never going to work well. Like black on a dark background. |
Does that mean that no matter what color I set in the following code, it will never adjust?
|
Rich writes code that says make the foreground color black. It's your terminal that decides on the exact shade you get. You can configure your terminal to adjust theme colors. So you could change black to a dark grey or a different color entirely. |
I hope we solved your problem. If you like using Rich, you might also enjoy Textual |
Operating System: Windows 11 Pro
Python Version: 3.11
Rich Library Version: 13.7
Problem Description:
When I execute the following line in the terminal, the text remains black even when the terminal switches to Dark Mode, which has a black background. This makes the text unreadable.
Code where the issue occurs:
On the other hand, the following code will automatically adjust the text color to white when the display mode automatically switches to Dark Mode:
The text was updated successfully, but these errors were encountered: