Get back to the original solution.
MODIFY
WalletWasabi.Gui/Converters/NetworkColorConverter.cs
WalletWasabi.Gui/Converters/NetworkColorConverter.cs
@@ -14,15 +14,12 @@ namespace WalletWasabi.Gui.Converters
{
public class NetworkColorConverter : IValueConverter
{
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
+ value switch
{
- if (Application.Current.TryFindResource(value.ToString(), out var color))
- {
- return color;
- }
-
- return "#007ACC";
- }
+ Network network => Application.Current.Resources[network.Name],
+ _ => Application.Current.Resources[Network.Main.Name]
+ };
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) =>
throw new NotSupportedException();

Get back to the original solution.