ComponentFactory / Krypton

Krypton WinForms components for .NET
BSD 3-Clause "New" or "Revised" License
1.88k stars 691 forks source link

Kryptonbutton changing to white when pressing #246

Open Gebrochener opened 1 year ago

Gebrochener commented 1 year ago

Hey,

so i just created a kryptonbutton with red background color but everytime i press it its background color gets white or something even when I changed its statepressed to red

this is what it looks like normally: Bild_2023-04-08_141519900

this is what it looks like when I press it: Bild_2023-04-08_141454887

but this only happens when i press it and then go off it with my mouse, when im with my mouse over the button it looks fine.

btnLaunch.StateCommon.Back.Color1 = Color.FromArgb(128, Color.Red); btnLaunch.StateCommon.Back.Color2 = Color.FromArgb(128, Color.Red); btnLaunch.StatePressed.Back.Color1 = Color.FromArgb(128, Color.Red); btnLaunch.StatePressed.Back.Color2 = Color.FromArgb(128, Color.Red);