Rename Style and Appearance

* Renames Style -> Decoration
* Renames Appearance -> Style
* Adds Style.Parse and Style.TryParse
This commit is contained in:
Patrik Svensson
2020-08-03 22:33:08 +02:00
committed by Patrik Svensson
parent c3286a4842
commit 98cf63f485
32 changed files with 691 additions and 405 deletions

View File

@@ -28,9 +28,9 @@ namespace Spectre.Console
foreach (var segment in renderable.Render(console.Encoding, console.Width))
{
if (!segment.Appearance.Equals(Appearance.Plain))
if (!segment.Style.Equals(Style.Plain))
{
using (var appearance = console.PushAppearance(segment.Appearance))
using (var style = console.PushStyle(segment.Style))
{
console.Write(segment.Text);
}