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();
        }
Exemple #3
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();
        }
        /// <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);
        }
Exemple #5
0
        public override void RefreshTheme(Colors colors, ControlBase control)
        {
            if (colors == null)
            {
                colors = Library.Default.Colors;
            }

            var listbox = (ListBox)control;

            base.RefreshTheme(colors, control);

            SetForeground(Normal.Foreground);
            SetBackground(Normal.Background);
            listbox.ItemTheme.RefreshTheme(colors, control);

            listbox.ScrollBar.Theme = ScrollBarTheme;

            ScrollBarTheme?.RefreshTheme(colors, listbox.ScrollBar);

            BorderTheme.RefreshTheme(colors, control);
            BorderTheme.SetForeground(Normal.Foreground);
            BorderTheme.SetBackground(Normal.Background);
            BorderLineStyle = (int[])CellSurface.ConnectedLineThick.Clone();
        }