-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[BUG]In the latest versions rich "Title" without color #3569
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
Comments
@willmcgugan |
@snooppr I'm not Will, but perhaps as a workaround in the meantime you could try setting the from rich.console import Console
from rich.panel import Panel
from rich.style import Style
console = Console()
console.print(
Panel(
"Content",
title="[bold white]Title[/bold white]",
style=Style(color="white", bgcolor="blue"),
border_style=Style(bgcolor="blue"),
)
) It looks like there's a history of issues related to the panel title style, so any fix for this issue should be careful not to cause any regressions... |
@TomJGooding |
I hope we solved your problem. If you like using Rich, you might also enjoy Textual |
Fix `Panel` title missing the panel background style. This really just reverts the change in 7a38204. There's a history of issues related to the panel title styles, so I was careful to run all the examples in those issues to ensure there wasn't any regression. Fixes Textualize#3569
rich v 13.0.1 Title is painted over, see screenshot
rich v13.9.4r Title unpainted, see screenshot
OS GNU/Linux and OS Windows
Title should be like on the first screen (white on blue), in the second case (updated rich) white on dark (bug?)
The text was updated successfully, but these errors were encountered: