{ //Primary Button public void _primaryButton(Bunifu.Framework.UI.BunifuFlatButton btn, string BtnSize = "md") { //default size var _iconZoom = 50; var _btnHeight = 33; switch (BtnSize) { case "sm": _iconZoom = 32; _btnHeight = 32; break; case "lg": _iconZoom = 60; _btnHeight = 40; break; } BunifuElipse Eclipse = new BunifuElipse(); Eclipse.TargetControl = btn; Eclipse.ElipseRadius = 20; btn.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); btn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); btn.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); btn.Cursor = System.Windows.Forms.Cursors.Hand; btn.DisabledColor = System.Drawing.Color.Gray; btn.IconVisible = true; btn.IconZoom = _iconZoom; btn.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); btn.Normalcolor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); btn.OnHovercolor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(162)))), ((int)(((byte)(224))))); btn.OnHoverTextColor = System.Drawing.Color.White; btn.Padding = new System.Windows.Forms.Padding(20, 0, 20, 0); btn.Height = _btnHeight; btn.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; btn.Textcolor = System.Drawing.Color.White; btn.TextFont = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); }
public void _buttonNotRounded(Bunifu.Framework.UI.BunifuFlatButton btn) { //int _iconZoom = 75; //int _btnHeight = 50; btn.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(170)))), ((int)(((byte)(253))))); btn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(170)))), ((int)(((byte)(225))))); btn.Cursor = System.Windows.Forms.Cursors.Hand; btn.DisabledColor = System.Drawing.Color.Gray; btn.IconVisible = true; //btn.IconZoom = _iconZoom; btn.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); btn.Normalcolor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(170)))), ((int)(((byte)(225))))); btn.OnHovercolor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(162)))), ((int)(((byte)(224))))); btn.OnHoverTextColor = System.Drawing.Color.White; btn.Padding = new System.Windows.Forms.Padding(20, 0, 20, 0); //btn.Height = _btnHeight; btn.Size = new Size(24, 24); btn.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; btn.Textcolor = System.Drawing.Color.White; btn.TextFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); }