mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 09:18:01 +01:00
Fix for reflection-based configuration
This commit is contained in:
@@ -63,7 +63,8 @@ public sealed class Colors : INotifyCollectionChanged, IDictionary<string, Color
|
||||
/// </remarks>
|
||||
[SerializableConfigurationProperty (Scope = typeof (ThemeScope), OmitClassName = true)]
|
||||
[JsonConverter (typeof (DictionaryJsonConverter<ColorScheme?>))]
|
||||
public static Dictionary<string, ColorScheme?> ColorSchemes { get; }
|
||||
[UsedImplicitly]
|
||||
public static Dictionary<string, ColorScheme?> ColorSchemes { get; private set; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public IEnumerator<KeyValuePair<string, ColorScheme?>> GetEnumerator () { return ColorSchemes.GetEnumerator (); }
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
<!-- Dependencies -->
|
||||
<!-- =================================================================== -->
|
||||
<ItemGroup>
|
||||
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
||||
<PackageReference Include="System.IO.Abstractions" Version="20.0.4" />
|
||||
<PackageReference Include="System.Text.Json" Version="8.0.1" />
|
||||
@@ -83,6 +84,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Using Include="System.Text" />
|
||||
<Using Include="JetBrains.Annotations" />
|
||||
</ItemGroup>
|
||||
<!-- =================================================================== -->
|
||||
<!-- Nuget -->
|
||||
|
||||
Reference in New Issue
Block a user