mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2026-01-01 00:46:42 +01:00
Rename Style and Appearance
* Renames Style -> Decoration * Renames Appearance -> Style * Adds Style.Parse and Style.TryParse
This commit is contained in:
committed by
Patrik Svensson
parent
c3286a4842
commit
98cf63f485
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user