Ejemplo n.º 1
0
        public override void RefreshTheme(Colors themeColors, ControlBase control)
        {
            if (themeColors == null)
            {
                themeColors = Library.Default.Colors;
            }

            base.RefreshTheme(themeColors, control);

            CheckedIcon.RefreshTheme(themeColors, control);
            UncheckedIcon.RefreshTheme(themeColors, control);
            LeftBracket.RefreshTheme(themeColors, control);
            RightBracket.RefreshTheme(themeColors, control);

            CheckedIcon.SetGlyph(251);
            UncheckedIcon.SetGlyph(0);
            LeftBracket.SetGlyph('[');
            RightBracket.SetGlyph(']');
        }
Ejemplo n.º 2
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();
        }