leocb / MaterialSkin

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

Can I create a Custom Color to replace the primary color? #384

Open naakmsc opened 1 year ago

naakmsc commented 1 year ago

I would like to leave a specific color for the primary color in ColorScheme, but I can't find any other way than the default ones. image

valimaties commented 1 year ago

Press F12 over the ColorScheme, and it will open for you the constructors. As you will see, there are four constructors for this ColorScheme class:

Try to use the third or the fourth constructor:

public ColorScheme(int primary, int darkPrimary, int lightPrimary, int accent, TextShade textShade) 

or

public ColorScheme(Color primary, Color darkPrimary, Color lightPrimary, Color accent, TextShade textShade)

I probably find more usefull the fourth constructor, using Color struct.

Regards, Vali