/// <summary> /// Creates a new checkbox theme with an optional bracket and check icon. /// </summary> /// <param name="leftBracketGlyph">The left bracket of the checkbox icon. Defaults to '['.</param> /// <param name="rightBracketGlyph">The right bracket of the checkbox icon. Defaults to ']'.</param> /// <param name="checkedGlyph">The checkbox checked icon. Defaults to 251'√'.</param> /// <param name="uncheckedGlyph">The checkbox unchecked icon. Defaults to 0.</param> public CheckBoxTheme(int leftBracketGlyph = '[', int rightBracketGlyph = ']', int checkedGlyph = 251, int uncheckedGlyph = 0) { BracketsThemeState = new ThemeStates(); IconThemeState = new ThemeStates(); LeftBracketGlyph = leftBracketGlyph; RightBracketGlyph = rightBracketGlyph; CheckedIconGlyph = checkedGlyph; UncheckedIconGlyph = uncheckedGlyph; }
/// <summary> /// Creates a new theme used by the <see cref="ProgressBar"/>. /// </summary> public ProgressBarTheme() { PrintDisplayAsDecorator = true; Background = new ThemeStates(); Foreground = new ThemeStates(); DisplayText = new ThemeStates(); Background.SetGlyph(176); Foreground.SetGlyph(219); }
/// <summary> /// Creates a new button theme with the specified left and right brackets. /// </summary> /// <param name="leftEndGlyph">Specified the left end. Defaults to '$lt;'.</param> /// <param name="rightEndGlyph">Specified the right bracket. Defaults to '>'.</param> public ButtonTheme(int leftEndGlyph = '<', int rightEndGlyph = '>') { EndsThemeState = new ThemeStates(); LeftEndGlyph = leftEndGlyph; RightEndGlyph = rightEndGlyph; }