diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index dbbc1367..344340bb 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -583,7 +583,7 @@ namespace Sunny.UI { using (Image image = IconToImage(Icon)) { - e.Graphics.DrawImage(image, 6, (TitleHeight - 24) / 2, 24, 24); + e.Graphics.DrawImage(image, 6, (TitleHeight - 24) / 2 + 1, 24, 24); } } diff --git a/SunnyUI/Forms/UIForm2.cs b/SunnyUI/Forms/UIForm2.cs index c60f3e84..326b9a87 100644 --- a/SunnyUI/Forms/UIForm2.cs +++ b/SunnyUI/Forms/UIForm2.cs @@ -93,7 +93,7 @@ namespace Sunny.UI { using (Image image = IconToImage(Icon)) { - e.Graphics.DrawImage(image, 6, (TitleHeight - 24) / 2, 24, 24); + e.Graphics.DrawImage(image, 6, (TitleHeight - 24) / 2 + 1, 24, 24); } }