Ejemplo n.º 1
0
        public AboutBox()
        {
            InitializeComponent();
            DarkTheme.Initialize(this);

            Text = String.Format("关于 {0}", AssemblyTitle);
            labelProductName.Text   = AssemblyProduct;
            labelVersion.Text       = String.Format("版本 {0}", AssemblyVersion);
            labelCopyright.Text     = AssemblyCopyright;
            labelCompanyName.Text   = AssemblyCompany;
            textBoxDescription.Text = AssemblyDescription;
        }
Ejemplo n.º 2
0
        public ArrayParser()
        {
            InitializeComponent();
            DarkTheme.Initialize(this);

            frameRoot.ValueChanged +=
                (object sender, EventArgs e) =>
            {
                if (!isSettingValue)
                {
                    SaveEditedValue();
                }
            };
        }
Ejemplo n.º 3
0
        private void SetTheme()
        {
            DarkTheme.Initialize(this);

            fctbJson.BackColor = DarkTheme.PressedColor;
            fctbJson.ServiceColors.CollapseMarkerBackColor   = DarkTheme.BackColor;
            fctbJson.ServiceColors.CollapseMarkerBorderColor = DarkTheme.ForeColor;
            fctbJson.ServiceColors.CollapseMarkerForeColor   = DarkTheme.ForeColor;
            fctbJson.ServiceColors.ExpandMarkerBackColor     = DarkTheme.BackColor;
            fctbJson.ServiceColors.ExpandMarkerBorderColor   = DarkTheme.ForeColor;
            fctbJson.ServiceColors.ExpandMarkerBorderColor   = DarkTheme.ForeColor;
            fctbJson.IndentBackColor = DarkTheme.BackColor;

            fctbJson.ChangeFontSize(6);
        }
Ejemplo n.º 4
0
        public Editor()
        {
            InitializeComponent();

            DarkTheme.Initialize(this);

            // 你tm有本事写在一行啊!!!
            frameParserRoot.ValueChanged +=
                (object sender, EventArgs e) =>
            {
                if (!isSettingJson)
                {
                    MainForm.GetInstance().IsChanged = true;
                }
            };
        }
Ejemplo n.º 5
0
        private void SetTheme()
        {
            DarkTheme.Initialize(this);
            menuTop.Renderer     = new BetterMenuStripRenderer();
            lblFuckGdi.BackColor = DarkTheme.HoverColor;

            foreach (ToolStripItem i in menuTop.Items)
            {
                i.BackColor = BackColor;
                i.ForeColor = ForeColor;
            }
            foreach (ToolStripItem i in smnuDataPack.DropDownItems)
            {
                i.BackColor = BackColor;
                i.ForeColor = ForeColor;
            }
            foreach (ToolStripItem i in smnuHelp.DropDownItems)
            {
                i.BackColor = BackColor;
                i.ForeColor = ForeColor;
            }
            lblInfoBar.Font = new Font(lblInfoBar.Font.FontFamily, 15f);
        }
Ejemplo n.º 6
0
 public TextParser()
 {
     InitializeComponent();
     DarkTheme.Initialize(this);
 }
Ejemplo n.º 7
0
 public NullBooleanParser()
 {
     InitializeComponent();
     DarkTheme.Initialize(this);
 }
Ejemplo n.º 8
0
 public NumberParser()
 {
     InitializeComponent();
     DarkTheme.Initialize(this);
 }