diff --git a/docs/input/assets/images/rule.png b/docs/input/assets/images/rule.png index 85bfa71..bca9103 100644 Binary files a/docs/input/assets/images/rule.png and b/docs/input/assets/images/rule.png differ diff --git a/docs/input/widgets/rule.md b/docs/input/widgets/rule.md index 08dfe7a..faceef9 100644 --- a/docs/input/widgets/rule.md +++ b/docs/input/widgets/rule.md @@ -5,7 +5,7 @@ RedirectFrom: rule The `Rule` class is used to render a horizontal rule (line) to the terminal. -![Rule](../assets/images/rule.png) + # Usage diff --git a/examples/Rules/Program.cs b/examples/Rules/Program.cs index bae738f..438a717 100644 --- a/examples/Rules/Program.cs +++ b/examples/Rules/Program.cs @@ -14,26 +14,26 @@ namespace EmojiExample // Left aligned title WrapInPanel( - new Rule("[white]Left aligned[/]") + new Rule("[blue]Left aligned[/]") .RuleStyle(Style.Parse("red")) .LeftAligned()); // Centered title WrapInPanel( - new Rule("[silver]Centered[/]") + new Rule("[green]Centered[/]") .RuleStyle(Style.Parse("green")) .Centered()); // Right aligned title WrapInPanel( - new Rule("[grey]Right aligned[/]") + new Rule("[red]Right aligned[/]") .RuleStyle(Style.Parse("blue")) .RightAligned()); } private static void WrapInPanel(Rule rule) { - AnsiConsole.Render(new Panel(rule).Expand().BorderStyle(Style.Parse("grey"))); + AnsiConsole.Render(rule); AnsiConsole.WriteLine(); } }