leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
428 stars 130 forks source link

White Edges around Buttons #359

Open timbiermann1271 opened 1 year ago

timbiermann1271 commented 1 year ago

Just started playing around with Visual Studios 2022 and Material Skin. I am having an issue when I place a button, basically there seems to be a white edge that is visible around the edges as shown in the picture below.

image

I am using Framework 4.8

Any idea what is causing this?

Many Thanks

progmars commented 1 year ago

I found that shadow causes undesired coloring in the corners. I had to remove the code:

DrawHelper.DrawSquareShadow(g, ClientRectangle);

for the button to get rid of this.