Panel background color? #405
-
Hi! I was wandering if there's a way to set a panel's background color? I can change the panel's text and edge colors (e.g. see screnshot from knowledgebase), but I haven't found a way to "fill in" the whole panel with color, any suggestions? Somewhat related, is there an options to have a "transparent" color? Sometimes I use visual elements like panels to make sure things are aligned correctly but I don't want to see the panel. Currently I'm hard coding the panel's edge to match my terminal color but it doesn't sound like a long term solution. Thanks Will, Rich is so much fun :D |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can set a background color with the style argument on Panel. For example There's no transparent Panel per se. But you could use Padding to create a one cell border around something. For instance Glad you like Rich. You've done some awesome stuff with it lately! |
Beta Was this translation helpful? Give feedback.
You can set a background color with the style argument on Panel. For example
Panel("Hello", style="on blue")
There's no transparent Panel per se. But you could use Padding to create a one cell border around something. For instance
Padding(renderable, 1)
Glad you like Rich. You've done some awesome stuff with it lately!