Exemplo n.º 1
0
        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(')');
        }
Exemplo n.º 2
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(']');
        }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
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(']');
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
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(')');
        }
Exemplo n.º 7
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(']');
        }