diff --git a/Bin/SunnyUI.dll b/Bin/SunnyUI.dll index 1f1e8ba8..3f2d81f9 100644 Binary files a/Bin/SunnyUI.dll and b/Bin/SunnyUI.dll differ diff --git a/Bin/SunnyUI.pdb b/Bin/SunnyUI.pdb index 4aec4489..ad20fe52 100644 Binary files a/Bin/SunnyUI.pdb and b/Bin/SunnyUI.pdb differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe index 9ad75866..920940a0 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe and b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.dll b/SunnyUI.Demo/Bin/SunnyUI.dll index 1f1e8ba8..3f2d81f9 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.dll and b/SunnyUI.Demo/Bin/SunnyUI.dll differ diff --git a/SunnyUI.Demo/Forms/Frames/FHeaderMainFooter.Designer.cs b/SunnyUI.Demo/Forms/Frames/FHeaderMainFooter.Designer.cs index 09cad281..f5a3f944 100644 --- a/SunnyUI.Demo/Forms/Frames/FHeaderMainFooter.Designer.cs +++ b/SunnyUI.Demo/Forms/Frames/FHeaderMainFooter.Designer.cs @@ -45,7 +45,6 @@ // this.Header.Controls.Add(this.uiLogo1); this.Header.Size = new System.Drawing.Size(1024, 110); - this.Header.Style = Sunny.UI.UIStyle.Blue; this.Header.MenuItemClick += new Sunny.UI.UINavBar.OnMenuItemClick(this.Header_MenuItemClick); // // uiLogo1 @@ -56,7 +55,6 @@ this.uiLogo1.MinimumSize = new System.Drawing.Size(300, 80); this.uiLogo1.Name = "uiLogo1"; this.uiLogo1.Size = new System.Drawing.Size(300, 80); - this.uiLogo1.Style = Sunny.UI.UIStyle.Custom; this.uiLogo1.TabIndex = 1; this.uiLogo1.Text = "uiLogo1"; // @@ -66,7 +64,6 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1024, 720); this.Name = "FHeaderMainFooter"; - this.Style = Sunny.UI.UIStyle.Blue; this.Text = "FHeaderMainFooter"; this.Header.ResumeLayout(false); this.ResumeLayout(false); diff --git a/SunnyUI/Controls/UILedBulb.cs b/SunnyUI/Controls/UILedBulb.cs index 6e69c75a..8590c969 100644 --- a/SunnyUI/Controls/UILedBulb.cs +++ b/SunnyUI/Controls/UILedBulb.cs @@ -168,7 +168,17 @@ namespace Sunny.UI // Draw the border g.SetClip(ClientRectangle); - if (On) g.DrawEllipse(new Pen(Color.FromArgb(85, Color.Black), 1F), rectangle); + g.SetHighQuality(); + + if (On) + { + using (Pen pn = new Pen(Color.FromArgb(85, Color.Black), 1F)) + { + g.DrawEllipse(pn, rectangle); + } + } + + g.SetDefaultQuality(); } private int blinkInterval = 1000;