private void UpdatePreviewColors() { CustomColorTable = new Extensions.OverridenColorTable() { UseSystemColors = false, ColorMenuBorder = Color.Black, ColorMenuBarBackground = MenuStripBarBackground, ColorMenuItemSelected = MenuStripBackgroundSelected, ColorMenuBackground = MenuStripBackground, TextColor = MenuStripText }; tableLayoutPanel3.BackColor = FormBackground; tableLayoutPanel3.ForeColor = FormTextColor; menuStrip1.Renderer = new ToolStripProfessionalRenderer(CustomColorTable); menuStrip1.ForeColor = MenuStripBarText; ReColorChildren(menuStrip1); RB_Preview.BackColor = LineColorBackground; RB_Preview.Clear(); AppendChatLine("This is the generic line, which is usually any chat message", LineType.Generic); AppendChatLine("This is the irc command line, which is usually received when receiving information like connection state change / verification / moderation rights", LineType.IrcCommand); AppendChatLine("This is the moderation line, which is when a moderator uses a mod only command (rare one)", LineType.ModCommand); AppendChatLine("This is a sound playback line, which is when a user uses a sound", LineType.SoundCommand); }
private void UpdateColors() { var CustomColorTable = new Extensions.OverridenColorTable() { UseSystemColors = false, ColorMenuBorder = Color.Black, ColorMenuBarBackground = _programSettings.Colors.MenuStripBarBackground, ColorMenuItemSelected = _programSettings.Colors.MenuStripBackgroundSelected, ColorMenuBackground = _programSettings.Colors.MenuStripBackground, TextColor = _programSettings.Colors.MenuStripText }; this.BackColor = _programSettings.Colors.FormBackground; this.ForeColor = _programSettings.Colors.FormTextColor; menuStrip1.Renderer = new ToolStripProfessionalRenderer(CustomColorTable); menuStrip1.ForeColor = _programSettings.Colors.MenuStripBarText; ReColorChildren(menuStrip1); RB_Preview.BackColor = _programSettings.Colors.LineColorBackground; RB_Preview.Clear(); }