Пример #1
0
 public static string GetUrl(FontAwesome5Brands icon, string backgroundColor = "", string foregroundColor = "", int fontSize = -1, Rotations rotate = Rotations.None)
 {
     return(BuildSettings(icon, backgroundColor, foregroundColor, fontSize, rotate));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Geta.Epi.FontThumbnail.TreeIconAttribute" /> class.
 /// </summary>
 /// <param name="icon">The FontAwesome5Brands icon to be used</param>
 /// <param name="rotate">The rotation to be used, defaults to None</param>
 public TreeIconAttribute(FontAwesome5Brands icon, Rotations rotate = Rotations.None)
 {
     Icon   = icon;
     Rotate = rotate;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Geta.Epi.FontThumbnail.ThumbnailIconAttribute" /> class.
 /// </summary>
 /// <param name="icon">The FontAwesome5Brands icon to be used</param>
 /// <param name="backgroundColor">The backgroundColor to be used when rendering the image (specified in hexadecimal, for example #000000)</param>
 /// <param name="foregroundColor">The foregroundColor to be used when rendering the image (specified in hexadecimal, for example #ffffff) </param>
 /// <param name="fontSize">The fontSize to be used, default value is 40</param>
 /// <param name="rotate">The rotation to be used, defaults to None</param>
 public ThumbnailIconAttribute(FontAwesome5Brands icon, string backgroundColor = "", string foregroundColor = "", int fontSize = -1, Rotations rotate = Rotations.None)
     : base(ImageUrlHelper.GetUrl(icon, backgroundColor, foregroundColor, fontSize, rotate))
 {
     Icon   = icon;
     Rotate = rotate;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Geta.Epi.FontThumbnail.ThumbnailIconAttribute" /> class.
 /// </summary>
 /// <param name="icon">The FontAwesome5Brands icon to be used</param>
 public ThumbnailIconAttribute(FontAwesome5Brands icon)
     : base(ImageUrlHelper.GetUrl(icon))
 {
     Icon = icon;
 }
 public ThumbnailIcon(FontAwesome5Brands icon, string backgroundColor = "", string foregroundColor = "", int fontSize = -1) : base(ImageUrlHelper.GetUrl(icon, backgroundColor, foregroundColor, fontSize))
 {
 }
Пример #6
0
 public static string GetUrl(FontAwesome5Brands icon, string backgroundColor = "", string foregroundColor = "", int fontSize = -1)
 {
     return(BuildSettings("fa-brands-400.ttf", (int)icon, backgroundColor, foregroundColor, fontSize));
 }