调整图标位置

This commit is contained in:
Sunny 2024-05-16 22:43:52 +08:00
parent 46c6bec21d
commit 35ef10547f
2 changed files with 2 additions and 2 deletions

View File

@ -583,7 +583,7 @@ namespace Sunny.UI
{ {
using (Image image = IconToImage(Icon)) 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);
} }
} }

View File

@ -93,7 +93,7 @@ namespace Sunny.UI
{ {
using (Image image = IconToImage(Icon)) 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);
} }
} }