Beispiel #1
0
        /// <inheritdoc />
        public override void RefreshTheme(Colors themeColors, ControlBase control)
        {
            if (themeColors == null)
            {
                themeColors = Library.Default.Colors;
            }

            base.RefreshTheme(themeColors, control);

            var bar = (ProgressBar)control;

            Background.RefreshTheme(themeColors);
            Background.SetForeground(Background.Normal.Foreground);
            Background.SetBackground(Background.Normal.Background);
            Background.Disabled = new ColoredGlyph(Color.Gray, Color.Black, 176);
            Foreground.RefreshTheme(themeColors);
            Foreground.SetForeground(Foreground.Normal.Foreground);
            Foreground.SetBackground(Foreground.Normal.Background);
            Foreground.Disabled = new ColoredGlyph(Color.Gray, Color.Black, 219);
            DisplayText.RefreshTheme(themeColors);
            DisplayText.SetForeground(bar.DisplayTextColor);
        }