Status bar messages
MODIFY
WalletWasabi.Gui/Controls/StatusBar.xaml
WalletWasabi.Gui/Controls/StatusBar.xaml
<converters:UpdateStatusBrushConverter x:Key="UpdateStatusBrushConverter" />
<converters:ShowCursorConverter x:Key="ShowCursorConverter" />
<converters:ShouldDisplayValueConverter x:Key="ShouldDisplayValueConverter" />
+ <converters:PascalToPhraseConverter x:Key="PascalToPhraseConverter" />
</UserControl.Resources>
<Grid Cursor="{Binding UpdateAvailable, Converter={StaticResource ShowCursorConverter}}" Background="{Binding UpdateStatus, Converter={StaticResource UpdateStatusBrushConverter}}">
</DrawingPresenter.Drawing>
</DrawingPresenter>
</Grid>
- <TextBlock Text="{Binding Tor, StringFormat='Tor: \{0\}'}" Foreground="{Binding Tor, ConverterParameter=Tor, Converter={StaticResource StatusColorConverter}}" />
+ <TextBlock Text="{Binding Tor, StringFormat='Tor is \{0\}', Converter={StaticResource PascalToPhraseConverter}}" Foreground="{Binding Tor, ConverterParameter=Tor, Converter={StaticResource StatusColorConverter}}" />
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="4" IsVisible="{Binding !CriticalUpdateAvailable}">
</DrawingPresenter.Drawing>
</DrawingPresenter>
</Grid>
- <TextBlock Text="{Binding Backend, StringFormat='Backend: \{0\}'}" Foreground="{Binding Backend, ConverterParameter=Backend, Converter={StaticResource StatusColorConverter}}" />
+ <TextBlock Text="{Binding Backend, StringFormat='Backend is \{0\}', Converter={StaticResource PascalToPhraseConverter}}" Foreground="{Binding Backend, ConverterParameter=Backend, Converter={StaticResource StatusColorConverter}}" />
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="4" IsVisible="{Binding !CriticalUpdateAvailable}">

ADD
WalletWasabi.Gui/Converters/PascalToPhraseConverter.cs
+using Avalonia.Data.Converters;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Text;
+
+namespace WalletWasabi.Gui.Converters
+{
+ public class PascalToPhraseConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ var str = value.ToString();
+ var ret = "";
+ var pos = 0;
+ foreach(var c in str)
+ {
+ if(char.IsUpper(c))
+ {
+ if(pos > 0)
+ ret += " ";
+ ret += char.ToLower(c);
+ }
+ else
+ {
+ ret += c;
+ }
+ pos++;
+ }
+ return ret;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotSupportedException();
+ }
+ }
+}
\ No newline at end of file

Status bar messages