소스 검색

ColorJsonConverter fix

Tig 1 년 전
부모
커밋
c5cda74549
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      Terminal.Gui/Configuration/ColorJsonConverter.cs

+ 1 - 6
Terminal.Gui/Configuration/ColorJsonConverter.cs

@@ -1,5 +1,6 @@
 using System.Text.Json;
 using System.Text.Json.Serialization;
+using ColorHelper;
 
 namespace Terminal.Gui;
 
@@ -37,12 +38,6 @@ internal class ColorJsonConverter : JsonConverter<Color>
                 return new (color1);
             }
 
-            if (Enum.TryParse (colorString, true, out ColorName16 color))
-            {
-                // Return the parsed color
-                return new (in color);
-            }
-
             if (Color.TryParse (colorString, null, out Color parsedColor))
             {
                 return parsedColor;