Move colors to App.xaml
MODIFY
WalletWasabi.Gui/App.xaml
WalletWasabi.Gui/App.xaml
<StyleInclude Source="avares://WalletWasabi.Gui/Controls/BusyIndicator.xaml" />
<StyleInclude Source="avares://WalletWasabi.Gui/Controls/LockScreen/SlideLock.xaml" />
</Application.Styles>
+ <Application.Resources>
+ <SolidColorBrush x:Key="Main">#007ACC</SolidColorBrush>
+ <SolidColorBrush x:Key="TestNet">#318522</SolidColorBrush>
+ <SolidColorBrush x:Key="RegTest">#AE6200</SolidColorBrush>
+ </Application.Resources>
<Application.DataTemplates>
<DataTemplate DataType="Views:MainView">
<ContentControl Content="{Binding ActiveDockable}" />

MODIFY
WalletWasabi.Gui/Converters/NetworkColorConverter.cs
WalletWasabi.Gui/Converters/NetworkColorConverter.cs
@@ -13,12 +13,11 @@ namespace WalletWasabi.Gui.Converters
public class NetworkColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
- Brush.Parse(value switch
+ value switch
{
- Network network when network == Network.TestNet => "#318522",
- Network network when network == Network.RegTest => "#AE6200",
- _ => "#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();

Move colors to App.xaml