@@ -4,7 +4,7 @@ namespace Sandbox;
44
55public sealed class BoxWidget ( Color ? color = null ) : IWidget
66{
7- public void Render ( IRenderContext context )
7+ public void Render ( RenderContext context )
88 {
99 var area = context . Viewport ;
1010
@@ -13,32 +13,32 @@ public void Render(IRenderContext context)
1313 {
1414 if ( x == 0 )
1515 {
16- context . SetRune ( x , 0 , '╭' ) ;
16+ context . SetSymbol ( x , 0 , '╭' ) ;
1717 context . SetForeground ( x , 0 , color ) ;
18- context . SetRune ( x , area . Height - 1 , '╰' ) ;
18+ context . SetSymbol ( x , area . Height - 1 , '╰' ) ;
1919 context . SetForeground ( x , area . Height - 1 , color ) ;
2020 }
2121 else if ( x == area . Width - 1 )
2222 {
23- context . SetRune ( x , 0 , '╮' ) ;
23+ context . SetSymbol ( x , 0 , '╮' ) ;
2424 context . SetForeground ( x , 0 , color ) ;
25- context . SetRune ( x , area . Height - 1 , '╯' ) ;
25+ context . SetSymbol ( x , area . Height - 1 , '╯' ) ;
2626 context . SetForeground ( x , area . Height - 1 , color ) ;
2727 }
2828 else
2929 {
30- context . SetRune ( x , 0 , '─' ) ;
30+ context . SetSymbol ( x , 0 , '─' ) ;
3131 context . SetForeground ( x , 0 , color ) ;
32- context . SetRune ( x , area . Height - 1 , '─' ) ;
32+ context . SetSymbol ( x , area . Height - 1 , '─' ) ;
3333 context . SetForeground ( x , area . Height - 1 , color ) ;
3434 }
3535 }
3636
3737 // Sides
3838 for ( var y = 1 ; y < area . Height - 1 ; y ++ )
3939 {
40- context . SetRune ( 0 , y , '│' ) ;
41- context . SetRune ( area . Width - 1 , y , '│' ) ;
40+ context . SetSymbol ( 0 , y , '│' ) ;
41+ context . SetSymbol ( area . Width - 1 , y , '│' ) ;
4242 context . SetForeground ( 0 , y , color ) ;
4343 context . SetForeground ( area . Width - 1 , y , color ) ;
4444 }
0 commit comments