public void toolbarbuttoncolors(int bg, int bghover, int bgmousedown, int font, int fonthover, int fontmousedown) { var colors = new MenuButtonColorOptions(); colors.backgroundColor = Color.FromArgb(bg); colors.backgroundHoverColor = Color.FromArgb(bghover); colors.backgroundMouseDownColor = Color.FromArgb(bgmousedown); colors.fontColor = Color.FromArgb(font); colors.fontHoverColor = Color.FromArgb(fonthover); colors.fontMouseDownColor = Color.FromArgb(fontmousedown); Window.Invoke(Window.toolbarButtonColors, colors); }
public MenuButton(ButtonType type, MenuButtonColorOptions colors) { InitializeComponent(); this.type = type; UpdateColors(colors); }
public void UpdateColors(MenuButtonColorOptions colors) { BackColor = colors.backgroundColor; DrawIcon(type, colors.fontColor); this.colors = colors; }
public void ToolbarButtonColors(MenuButtonColorOptions colors) { buttonClose.UpdateColors(colors); buttonMaximize.UpdateColors(colors); buttonMinimize.UpdateColors(colors); }