namespace Terminal.Gui;
/// The Margin for a .
///
/// See the class.
///
public class Margin : Adornment
{
///
public Margin ()
{ /* Do nothing; A parameter-less constructor is required to support all views unit tests. */
}
///
public Margin (View parent) : base (parent)
{
/* Do nothing; View.CreateAdornment requires a constructor that takes a parent */
}
///
/// The color scheme for the Margin. If set to , gets the 's
/// scheme. color scheme.
///
public override ColorScheme ColorScheme
{
get
{
if (base.ColorScheme is { })
{
return base.ColorScheme;
}
return Parent?.SuperView?.ColorScheme ?? Colors.ColorSchemes ["TopLevel"];
}
set
{
base.ColorScheme = value;
Parent?.SetNeedsDisplay ();
}
}
}