示例#1
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();
        }
示例#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();
        }