A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AngleSharp/AngleSharp.Css/issues/132 below:

Output hex color value for transparent values if `UseHex` is true · Issue #132 · AngleSharp/AngleSharp.Css · GitHub

Currently, when UseHex is true, color values are output as hex only if alpha is 1.0.

/// <summary> /// Gets or sets if hex codes should be used for serialization. /// This will not be applied in case of transparent colors, i.e., /// when alpha is not 1. /// </summary> public static Boolean UseHex { get; set; } else if (_alpha == 255 && UseHex) { return $"#{_red.ToString("X2", CultureInfo.InvariantCulture)}{_green.ToString("X2", CultureInfo.InvariantCulture)}{_blue.ToString("X2", CultureInfo.InvariantCulture)}"; }

Perhaps this could be changed to include colors with alpha < 1.0, too.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4