public MaterialColorScheme(Color primary, Color darkPrimary, Color lightPrimary, Color accent, MaterialTextShade textShade) { //Color PrimaryColor = primary; DarkPrimaryColor = darkPrimary; LightPrimaryColor = lightPrimary; AccentColor = accent; TextColor = ((int)textShade).ToColor(); //Pen PrimaryPen = new Pen(PrimaryColor); DarkPrimaryPen = new Pen(DarkPrimaryColor); LightPrimaryPen = new Pen(LightPrimaryColor); AccentPen = new Pen(AccentColor); TextPen = new Pen(TextColor); //Brush PrimaryBrush = new SolidBrush(PrimaryColor); DarkPrimaryBrush = new SolidBrush(DarkPrimaryColor); LightPrimaryBrush = new SolidBrush(LightPrimaryColor); AccentBrush = new SolidBrush(AccentColor); TextBrush = new SolidBrush(TextColor); }
public MaterialColorScheme(MaterialPrimary primary, MaterialPrimary darkPrimary, MaterialPrimary lightPrimary, MaterialAccent accent, MaterialTextShade textShade) { //Color PrimaryColor = ((int)primary).ToColor(); DarkPrimaryColor = ((int)darkPrimary).ToColor(); LightPrimaryColor = ((int)lightPrimary).ToColor(); AccentColor = ((int)accent).ToColor(); TextColor = ((int)textShade).ToColor(); //Pen PrimaryPen = new Pen(PrimaryColor); DarkPrimaryPen = new Pen(DarkPrimaryColor); LightPrimaryPen = new Pen(LightPrimaryColor); AccentPen = new Pen(AccentColor); TextPen = new Pen(TextColor); //Brush PrimaryBrush = new SolidBrush(PrimaryColor); DarkPrimaryBrush = new SolidBrush(DarkPrimaryColor); LightPrimaryBrush = new SolidBrush(LightPrimaryColor); AccentBrush = new SolidBrush(AccentColor); TextBrush = new SolidBrush(TextColor); }