private void OnLoad(object sender, System.EventArgs e) { DarkModeColorTable colorTable = DarkModeColorTable.Instance; mTextBox.BackColor = colorTable.BaseBackColor; mTextBox.ForeColor = colorTable.ForeColor; }
private void SetDarkMode() { DarkModeColorTable colorTable = DarkModeColorTable.Instance; mMenuStrip.Renderer = new DarkModeToolStripRenderer(colorTable); base.BackColor = colorTable.BackColor; base.ForeColor = colorTable.ForeColor; mTreeView.BackColor = colorTable.BackColor; mTreeView.ForeColor = colorTable.ForeColor; mTreeView.LineColor = colorTable.SeparatorLight; mPropertyGrid.LineColor = colorTable.BorderColor; mPropertyGrid.SelectedItemWithFocusBackColor = colorTable.BorderColor; mPropertyGrid.ViewBackColor = colorTable.BackColor; mPropertyGrid.ViewForeColor = colorTable.ForeColor; }