/// <summary> /// Creates a new theme used by the <see cref="RadioButton"/>. /// </summary> public RadioButtonTheme() { CheckedIcon = new ThemeStates(); UncheckedIcon = new ThemeStates(); LeftBracket = new ThemeStates(); RightBracket = new ThemeStates(); }
/// <summary> /// Creates a new theme used by the <see cref="CheckBox"/>. /// </summary> public CheckBoxTheme() { CheckedIcon = new ThemeStates(); UncheckedIcon = new ThemeStates(); LeftBracket = new ThemeStates(); RightBracket = new ThemeStates(); }
public CheckBoxTheme() { CheckedIcon = new ThemeStates(); UncheckedIcon = new ThemeStates(); LeftBracket = new ThemeStates(); RightBracket = new ThemeStates(); CheckedIcon.SetGlyph(251); UncheckedIcon.SetGlyph(0); LeftBracket.SetGlyph('['); RightBracket.SetGlyph(']'); }
public ProgressBarTheme() { Background = new ThemeStates(); Background.SetForeground(Normal.Foreground); Background.SetBackground(Normal.Background); Background.SetGlyph(176); Background.Disabled = new Cell(Color.Gray, Color.Black, 176); Foreground = new ThemeStates(); Foreground.SetForeground(Normal.Foreground); Foreground.SetBackground(Normal.Background); Foreground.SetGlyph(219); Foreground.Disabled = new Cell(Color.Gray, Color.Black, 219); }
public ListBoxTheme() { SetForeground(Normal.Foreground); SetBackground(Normal.Background); DrawBorder = true; ScrollBarTheme = (ScrollBarTheme)Library.Default.ScrollBarTheme?.Clone() ?? new ScrollBarTheme(); ItemTheme = new ListBoxItemTheme(); BorderTheme = new ThemeStates(); BorderTheme.SetForeground(Normal.Foreground); BorderTheme.SetBackground(Normal.Background); BorderLineStyle = (int[])SurfaceBase.ConnectedLineThick.Clone(); }
public RadioButtonTheme() { CheckedIcon = new ThemeStates(); UncheckedIcon = new ThemeStates(); LeftBracket = new ThemeStates(); RightBracket = new ThemeStates(); CheckedIcon.SetGlyph(251); CheckedIcon.SetGlyph(15); UncheckedIcon.SetGlyph(0); LeftBracket.SetGlyph('('); RightBracket.SetGlyph(')'); }
public override void RefreshTheme(Colors themeColors) { base.RefreshTheme(themeColors); CheckedIcon = new ThemeStates(themeColors); UncheckedIcon = new ThemeStates(themeColors); LeftBracket = new ThemeStates(themeColors); RightBracket = new ThemeStates(themeColors); CheckedIcon.SetGlyph(251); UncheckedIcon.SetGlyph(0); LeftBracket.SetGlyph('['); RightBracket.SetGlyph(']'); }
/// <inheritdoc /> public override void RefreshTheme(Colors themeColors) { base.RefreshTheme(themeColors); _updatedColors = true; SetForeground(Normal.Foreground); SetBackground(Normal.Background); ScrollBarTheme?.RefreshTheme(themeColors); BorderTheme = new ThemeStates(themeColors); BorderTheme.SetForeground(Normal.Foreground); BorderTheme.SetBackground(Normal.Background); BorderLineStyle = (int[])CellSurface.ConnectedLineThick.Clone(); }
/// <inheritdoc /> public override void RefreshTheme(Colors themeColors) { base.RefreshTheme(themeColors); Background = new ThemeStates(themeColors); Background.SetForeground(Normal.Foreground); Background.SetBackground(Normal.Background); Background.SetGlyph(176); Background.Disabled = new Cell(Color.Gray, Color.Black, 176); Foreground = new ThemeStates(themeColors); Foreground.SetForeground(Normal.Foreground); Foreground.SetBackground(Normal.Background); Foreground.SetGlyph(219); Foreground.Disabled = new Cell(Color.Gray, Color.Black, 219); }
/// <inheritdoc /> public override void RefreshTheme(Colors themeColors) { base.RefreshTheme(themeColors); CheckedIcon = new ThemeStates(themeColors); UncheckedIcon = new ThemeStates(themeColors); LeftBracket = new ThemeStates(themeColors); RightBracket = new ThemeStates(themeColors); //TODO Hardcoded radio button glyphs //CheckedIcon.SetGlyph(251); CheckedIcon.SetGlyph(15); UncheckedIcon.SetGlyph(0); LeftBracket.SetGlyph('('); RightBracket.SetGlyph(')'); }
/// <summary> /// Creates a new theme used by the <see cref="ProgressBar"/>. /// </summary> public ProgressBarTheme() { Background = new ThemeStates(); Foreground = new ThemeStates(); }
/// <summary> /// Creates a new theme used by the <see cref="ListBox"/>. /// </summary> /// <param name="scrollBarTheme">The theme to use to draw the scroll bar.</param> public ListBoxTheme(ScrollBarTheme scrollBarTheme) { ScrollBarTheme = scrollBarTheme; BorderTheme = new ThemeStates(); }