We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
background_color
Syntax
Describe the bug
See Textualize/textual#4227 (reply in thread) for context.
According to the Syntax documentation:
You can override the background color from the theme by supplying a background_color argument to the constructor.
However this doesn't seem to work as expected if the Syntax has padding:
from rich.console import Console from rich.syntax import Syntax code = """\ def do_something(): pass\ """ console = Console() syntax = Syntax( code, lexer="python", word_wrap=False, indent_guides=True, padding=(1, 2), theme="material", background_color="red", ) console.print(syntax)
If you set the background_color to the special value "default", this produces a different unexpected result:
Platform
Platform is Linux and tested in various terminal emulators.
$ pip freeze | grep rich rich==13.6.0
The text was updated successfully, but these errors were encountered:
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
See Textualize/textual#4227 (reply in thread) for context.
According to the Syntax documentation:
However this doesn't seem to work as expected if the
Syntax
has padding:If you set the
background_color
to the special value "default", this produces a different unexpected result:Platform
Platform is Linux and tested in various terminal emulators.
The text was updated successfully, but these errors were encountered: