IgnaceMaes / MaterialSkin

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

Use colors RGB in ColorScheme #188

Open DevRM9 opened 6 years ago

DevRM9 commented 6 years ago

How can I use a RGB code to personilize my app?

materialSkinManager.ColorScheme = new ColorScheme(Primary.Lime400, Primary.Lime500, Primary.Blue500, Accent.Orange700, TextShade.White);

I want to use a RGB code instead of Lime500

hlysine commented 6 years ago

You cannot put RGB code into the constructor parameters, but you can use the ToColor extension to change the Primary.Lime500 to Color.

ed6767 commented 6 years ago

Hi, Material design only has a set colours you can use. If you don't stick to them, you aren't officially material design. Please check out the colour pallet, and rules here: https://material.io/guidelines/style/color.html#