示例#1
0
 /// <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();
 }
示例#2
0
 /// <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();
 }
示例#3
0
        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);
 }
示例#5
0
        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(')');
        }
示例#7
0
        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(']');
        }
示例#8
0
        /// <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();
        }
示例#9
0
        /// <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);
        }
示例#10
0
        /// <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(')');
        }
示例#11
0
 /// <summary>
 /// Creates a new theme used by the <see cref="ProgressBar"/>.
 /// </summary>
 public ProgressBarTheme()
 {
     Background = new ThemeStates();
     Foreground = new ThemeStates();
 }
示例#12
0
 /// <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();
 }