internal void SetSolidLine(A.SchemeColorValues Color, decimal Tint, decimal Transparency) { this.UseSolidLine = true; this.SolidColor.SetColor(Color, Tint, Transparency); }
internal void SetColor(A.SchemeColorValues Color, decimal Tint, decimal Transparency) { IsRgbColorModelHex = false; SchemeColor = Color; var iThemeColor = (int)SLThemeColorIndexValues.Dark1Color; switch (Color) { // I don't really know what to assign for Text1, Text2, Background1, Background2 // PhClr (placeholder colour) case A.SchemeColorValues.Dark1: case A.SchemeColorValues.Text1: iThemeColor = (int)SLThemeColorIndexValues.Dark1Color; break; case A.SchemeColorValues.Light1: case A.SchemeColorValues.Background1: iThemeColor = (int)SLThemeColorIndexValues.Light1Color; break; case A.SchemeColorValues.Dark2: case A.SchemeColorValues.Text2: iThemeColor = (int)SLThemeColorIndexValues.Dark2Color; break; case A.SchemeColorValues.Light2: case A.SchemeColorValues.Background2: iThemeColor = (int)SLThemeColorIndexValues.Light2Color; break; case A.SchemeColorValues.PhColor: iThemeColor = (int)SLThemeColorIndexValues.Accent1Color; break; case A.SchemeColorValues.Accent1: iThemeColor = (int)SLThemeColorIndexValues.Accent1Color; break; case A.SchemeColorValues.Accent2: iThemeColor = (int)SLThemeColorIndexValues.Accent2Color; break; case A.SchemeColorValues.Accent3: iThemeColor = (int)SLThemeColorIndexValues.Accent3Color; break; case A.SchemeColorValues.Accent4: iThemeColor = (int)SLThemeColorIndexValues.Accent4Color; break; case A.SchemeColorValues.Accent5: iThemeColor = (int)SLThemeColorIndexValues.Accent5Color; break; case A.SchemeColorValues.Accent6: iThemeColor = (int)SLThemeColorIndexValues.Accent6Color; break; case A.SchemeColorValues.Hyperlink: iThemeColor = (int)SLThemeColorIndexValues.Hyperlink; break; case A.SchemeColorValues.FollowedHyperlink: iThemeColor = (int)SLThemeColorIndexValues.FollowedHyperlinkColor; break; } this.Tint = Tint; this.Transparency = Transparency; var index = iThemeColor; if ((index >= 0) && (index < listThemeColors.Count)) { DisplayColor = System.Drawing.Color.FromArgb(255, listThemeColors[index]); if (this.Tint != 0) { DisplayColor = SLTool.ToColor(DisplayColor, (double)Tint); } } }
internal void SetSolidFill(A.SchemeColorValues FillColor, decimal Tint, decimal Transparency) { this.Type = SLFillType.SolidFill; this.SolidColor.SetColor(FillColor, Tint, Transparency); }