Skip to content

Language XML Font colors #265

Open
Open
@ardanalbant

Description

@ardanalbant
using FastColoredTextBoxNS;
using System.Drawing;
using System.Windows.Forms;

namespace JFlowV2
{
    public partial class BaseFastColoredTextBox : FastColoredTextBox
    {
        public BaseFastColoredTextBox()
        {
            this.Load += BaseFastColoredTextBox_Load;
        }

        private void BaseFastColoredTextBox_Load(object sender, System.EventArgs e)
        {
            ApplyDarkTheme();
        }

        public void ApplyDarkTheme()
        {
            this.BackColor = Color.FromArgb(30, 30, 30); // Editor background
            this.ForeColor = Color.FromArgb(220, 220, 220); // Editor text
            this.IndentBackColor = Color.FromArgb(45, 45, 48); // Indentation background
            this.ServiceLinesColor = Color.FromArgb(50, 50, 50); // Service lines
            this.LineNumberColor = Color.FromArgb(43, 145, 175); // Line numbers
            this.SelectionColor = Color.FromArgb(60, 75, 110, 175); // Selection color
            this.CurrentLineColor = Color.FromArgb(40, 40, 40); // Current line highlight

        }
    }
}

why i cant change the theme ? It always shows red and blue colors

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions