public void SetStyle(Data.Style style) { this.BackColor = style.ControlBackColor; this.ForeColor = style.ForeColor; _imageList.Images[0] = Icons.AddColor(Properties.Resources.FolderOpenIcon, this.ForeColor); _imageList.Images[1] = Icons.AddColor(Properties.Resources.FolderCloseIcon, this.ForeColor); _imageList.Images[2] = Icons.AddColor(Properties.Resources.LocalIcon, this.ForeColor); _imageList.Images[3] = Icons.AddColor(Properties.Resources.RemoteIcon, this.ForeColor); _imageList.Images[4] = Icons.AddColor(Properties.Resources.ConsoleIcon, this.ForeColor); }
public void SetStyle(Data.Style style) { this.BackColor = style.WindowBackColor; this.ForeColor = style.ForeColor; this.tabs.BackColor = style.WindowBackColor; this.serversTreeLabel.BackColor = style.ControlBackColor; this.serversTreeLabel.ForeColor = style.ForeColor; this.addServerMenu.Image = Icons.AddColor(Properties.Resources.MenuAdd, style.ForeColor); this.settingsMenu.Image = Icons.AddColor(Properties.Resources.MenuSettings, style.ForeColor); this.languageMenu.Image = Icons.AddColor(Properties.Resources.MenuLanguage, style.ForeColor); this.serversTree.SetStyle(style); this.addServerMenuItems.SetStyle(style); this.settingsMenuItems.SetStyle(style); this.languageMenuItems.SetStyle(style); this.tabs.SetStyle(style); }