spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.
https://spectreconsole.net
MIT License
9.36k stars 496 forks source link

Add support for McGugan boxes #1113

Open patriksvensson opened 1 year ago

patriksvensson commented 1 year ago

See https://twitter.com/willmcgugan/status/1603805492958175232 for more information about McGugan Boxes.


Please upvote :+1: this issue if you are interested in it.

Frassle commented 1 year ago

I was having a play with this idea because it looked fun, and hit a couple of big questions around it. Currently padding in panels doesn't have any style applied, so even if you add a new BoxBorder using the character set shown in that blog post you don't get the pretty filled box because panels don't fill their background. Secondly to set the style of the border correctly you need to know the outer contexts style because some of the characters need to render with the borders foreground color, but the outside contexts background color. Tracking all that manually seems prone to mistakes. Thirdly BoxBorder is also used for things like Rule and Calender and it's not clear that these new more complicated styles should also be applied to those as well?