Beispiel #1
0
        public void Activate()
        {
            EditorFontAndColors fac = new EditorFontAndColors();

            linePreview.BackColor          = fac.BackColor;
            linePreviewHighlight.BackColor = fac.BackColor;
        }
Beispiel #2
0
        public void Activate()
        {
            EditorFontAndColors fac = new EditorFontAndColors();

            lineTextPreview.Font = new Font(fac.FontFamily, fac.FontSize,
                                            fac.FontBold ? FontStyle.Bold : FontStyle.Regular);
            lineTextPreview.ForeColor = fac.ForeColor;
            lineTextPreview.BackColor = fac.BackColor;
        }
Beispiel #3
0
        public void Activate()
        {
            EditorFontAndColors fac = new EditorFontAndColors();

            foreach (Tuple <LineTextPreview, IndentTheme> p in Presets.Zip(PresetThemes, (x, y) => new Tuple <LineTextPreview, IndentTheme>(x, y)))
            {
                p.Item1.Font               = new Font(fac.FontFamily, 8.0f, fac.FontBold ? FontStyle.Bold : FontStyle.Regular);
                p.Item1.ForeColor          = fac.ForeColor;
                p.Item1.BackColor          = fac.BackColor;
                p.Item1.HighlightBackColor = fac.HighlightBackColor;
                p.Item1.HighlightForeColor = fac.HighlightForeColor;
                p.Item1.VisibleWhitespace  = true;
                p.Item1.Theme              = p.Item2;
            }
        }