Hide unneccessary data
MODIFY
WalletWasabi.Gui/Controls/StatusBar.xaml
WalletWasabi.Gui/Controls/StatusBar.xaml
<converters:StatusColorConverter x:Key="StatusColorConverter" />
<converters:UpdateStatusBrushConverter x:Key="UpdateStatusBrushConverter" />
<converters:ShowCursorConverter x:Key="ShowCursorConverter" />
+ <converters:ShouldDisplayValueConverter x:Key="ShouldDisplayValueConverter" />
</UserControl.Resources>
<Grid Cursor="{Binding UpdateAvailable, Converter={StaticResource ShowCursorConverter}}" Background="{Binding UpdateStatus, Converter={StaticResource UpdateStatusBrushConverter}}">
<TextBlock Text="{Binding ShowNetwork}" />
</StackPanel>
+ <Panel IsVisible="{Binding BlocksLeft, Converter={StaticResource ShouldDisplayValueConverter}}">
+ <StackPanel Orientation="Horizontal" Gap="4" IsVisible="{Binding !CriticalUpdateAvailable}">
+ <Grid Height="10" Width="10">
+ <DrawingPresenter VerticalAlignment="Center" HorizontalAlignment="Center">
+ <DrawingPresenter.Drawing>
+ <DrawingGroup>
+ <DrawingGroup.Children>
+ <GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
+ <GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M2.5002,-0.000199999999999534L0.000199999999999978,2.4998 2.0002,4.4998 2.0002,6.9998 5.0002,6.9998 3.9992,7.9998 5.0002,7.9998 5.0002,14.9998 15.0002,14.9998 15.0002,1.9998 8.0002,1.9998 8.0002,0.9998 5.0002,0.9998 6.0002,-0.000199999999999534z" />
+ <GeometryDrawing Brush="#FF414141" Geometry="F1M12,8L13,8 13,9 12,9z M6,8L6,10 14,10 14,7 8.5,7 7.5,8z M12,12L13,12 13,13 12,13z M6,14L14,14 14,11 6,11z M12,4L13,4 13,5 12,5z M10,5.5L9.5,6 14,6 14,3 8,3 8,3.5z" />
+ <GeometryDrawing Brush="#FF00529C" Geometry="F1M8.5166,5.5L6.9996,7 5.9996,7 6.9996,6 2.9996,6 2.9996,5 6.9996,5 5.9996,4 6.9996,4z" />
+ <GeometryDrawing Brush="#FF00529C" Geometry="F1M4,4L3,3 7,3 7,2 3,2 4,1 3,1 1.517,2.5 3,4z" />
+ <GeometryDrawing Brush="#FFF0EFF1" Geometry="F1M12,5L13,5 13,4 12,4z M12,9L13,9 13,8 12,8z M12,13L13,13 13,12 12,12z" />
+ </DrawingGroup.Children>
+ </DrawingGroup>
+ </DrawingPresenter.Drawing>
+ </DrawingPresenter>
+ </Grid>
+ <!-- TODO: use StringFormat once its supported by Avalonia -->
+ <TextBlock Foreground="{Binding BlocksLeft, ConverterParameter=BlocksLeft, Converter={StaticResource StatusColorConverter}}">Missing Blocks:</TextBlock>
+ <TextBlock Text="{Binding BlocksLeft}" Foreground="{Binding BlocksLeft, ConverterParameter=BlocksLeft, Converter={StaticResource StatusColorConverter}}" />
+ </StackPanel>
+ </Panel>
+
+ <Panel IsVisible="{Binding FiltersLeft, Converter={StaticResource ShouldDisplayValueConverter}}">
+ <StackPanel Orientation="Horizontal" Gap="4" IsVisible="{Binding !CriticalUpdateAvailable}">
+ <Grid Height="10" Width="10">
+ <DrawingPresenter VerticalAlignment="Center" HorizontalAlignment="Center">
+ <DrawingPresenter.Drawing>
+ <DrawingGroup>
+ <DrawingGroup.Children>
+ <GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
+ <GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M0,3.0004L0,4.2764 3,9.2774 3,14.0004 7,14.0004 7,9.9204 11.522,14.4434 16,9.9484 16,9.4004 14.154,7.5544 13.006,8.6994 13.006,3.0044 10.765,3.0044 10.767,3.0004z M7,9.2774L10.006,4.2674 10.006,8.6824 8.874,7.5554 7,9.4304z" />
+ <GeometryDrawing Brush="#FF424242" Geometry="F1M9,4L6,9 6,13 4,13 4,9 1,4z" />
+ <GeometryDrawing Brush="#FF00539C" Geometry="F1M14.1504,8.9678L14.8574,9.6748 11.5174,13.0278 8.1654,9.6748 8.8724,8.9678 11.0034,11.0898 11.0034,4.0038 12.0034,4.0038 12.0034,11.1078z" />
+ </DrawingGroup.Children>
+ </DrawingGroup>
+ </DrawingPresenter.Drawing>
+ </DrawingPresenter>
+ </Grid>
+ <!-- TODO: use StringFormat once its supported by Avalonia -->
+ <TextBlock Foreground="{Binding FiltersLeft, ConverterParameter=FiltersLeft, Converter={StaticResource StatusColorConverter}}">Missing Filters:</TextBlock>
+ <TextBlock Text="{Binding FiltersLeft, Converter={StaticResource FilterLeftValueConverter}}" Foreground="{Binding FiltersLeft, ConverterParameter=FiltersLeft, Converter={StaticResource StatusColorConverter}}" />
+ </StackPanel>
+ </Panel>
+
<StackPanel Orientation="Horizontal" Gap="4" IsVisible="{Binding !CriticalUpdateAvailable}">
<Grid Height="10" Width="10">
<DrawingPresenter VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="{Binding Peers}" Foreground="{Binding Peers, ConverterParameter=Peers, Converter={StaticResource StatusColorConverter}}" />
</StackPanel>
- <StackPanel Orientation="Horizontal" Gap="4" IsVisible="{Binding !CriticalUpdateAvailable}">
- <Grid Height="10" Width="10">
- <DrawingPresenter VerticalAlignment="Center" HorizontalAlignment="Center">
- <DrawingPresenter.Drawing>
- <DrawingGroup>
- <DrawingGroup.Children>
- <GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
- <GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M0,3.0004L0,4.2764 3,9.2774 3,14.0004 7,14.0004 7,9.9204 11.522,14.4434 16,9.9484 16,9.4004 14.154,7.5544 13.006,8.6994 13.006,3.0044 10.765,3.0044 10.767,3.0004z M7,9.2774L10.006,4.2674 10.006,8.6824 8.874,7.5554 7,9.4304z" />
- <GeometryDrawing Brush="#FF424242" Geometry="F1M9,4L6,9 6,13 4,13 4,9 1,4z" />
- <GeometryDrawing Brush="#FF00539C" Geometry="F1M14.1504,8.9678L14.8574,9.6748 11.5174,13.0278 8.1654,9.6748 8.8724,8.9678 11.0034,11.0898 11.0034,4.0038 12.0034,4.0038 12.0034,11.1078z" />
- </DrawingGroup.Children>
- </DrawingGroup>
- </DrawingPresenter.Drawing>
- </DrawingPresenter>
- </Grid>
- <!-- TODO: use StringFormat once its supported by Avalonia -->
- <TextBlock Foreground="{Binding FiltersLeft, ConverterParameter=FiltersLeft, Converter={StaticResource StatusColorConverter}}">Missing Filters:</TextBlock>
- <TextBlock Text="{Binding FiltersLeft, Converter={StaticResource FilterLeftValueConverter}}" Foreground="{Binding FiltersLeft, ConverterParameter=FiltersLeft, Converter={StaticResource StatusColorConverter}}" />
- </StackPanel>
-
- <StackPanel Orientation="Horizontal" Gap="4" IsVisible="{Binding !CriticalUpdateAvailable}">
- <Grid Height="10" Width="10">
- <DrawingPresenter VerticalAlignment="Center" HorizontalAlignment="Center">
- <DrawingPresenter.Drawing>
- <DrawingGroup>
- <DrawingGroup.Children>
- <GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
- <GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M2.5002,-0.000199999999999534L0.000199999999999978,2.4998 2.0002,4.4998 2.0002,6.9998 5.0002,6.9998 3.9992,7.9998 5.0002,7.9998 5.0002,14.9998 15.0002,14.9998 15.0002,1.9998 8.0002,1.9998 8.0002,0.9998 5.0002,0.9998 6.0002,-0.000199999999999534z" />
- <GeometryDrawing Brush="#FF414141" Geometry="F1M12,8L13,8 13,9 12,9z M6,8L6,10 14,10 14,7 8.5,7 7.5,8z M12,12L13,12 13,13 12,13z M6,14L14,14 14,11 6,11z M12,4L13,4 13,5 12,5z M10,5.5L9.5,6 14,6 14,3 8,3 8,3.5z" />
- <GeometryDrawing Brush="#FF00529C" Geometry="F1M8.5166,5.5L6.9996,7 5.9996,7 6.9996,6 2.9996,6 2.9996,5 6.9996,5 5.9996,4 6.9996,4z" />
- <GeometryDrawing Brush="#FF00529C" Geometry="F1M4,4L3,3 7,3 7,2 3,2 4,1 3,1 1.517,2.5 3,4z" />
- <GeometryDrawing Brush="#FFF0EFF1" Geometry="F1M12,5L13,5 13,4 12,4z M12,9L13,9 13,8 12,8z M12,13L13,13 13,12 12,12z" />
- </DrawingGroup.Children>
- </DrawingGroup>
- </DrawingPresenter.Drawing>
- </DrawingPresenter>
- </Grid>
- <!-- TODO: use StringFormat once its supported by Avalonia -->
- <TextBlock Foreground="{Binding BlocksLeft, ConverterParameter=BlocksLeft, Converter={StaticResource StatusColorConverter}}">Missing Blocks:</TextBlock>
- <TextBlock Text="{Binding BlocksLeft}" Foreground="{Binding BlocksLeft, ConverterParameter=BlocksLeft, Converter={StaticResource StatusColorConverter}}" />
- </StackPanel>
-
<StackPanel Orientation="Horizontal" Gap="4" IsVisible="{Binding !CriticalUpdateAvailable}">
<Grid Height="10" Width="10">
<DrawingPresenter VerticalAlignment="Center" HorizontalAlignment="Center">
</DockPanel>
</Grid>
</UserControl>
-
-

Hide unneccessary data