private static void WriteValue(string key, Color color) { var str = GetConfigKey(nameof(Window), nameof(Colors), key); if (color == GetDefColor(key)) { WriteValue <string>(Section, str, null); return; } var html = ColorEx.ToHtml(color); WriteValue <string>(Section, str, html); }