Add polish of receive tab.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
<DockPanel Margin="10" LastChildFill="True">
<controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="20">
<Grid Classes="content">
- <Grid RowDefinitions="Auto,Auto">
- <Grid ColumnDefinitions="200, Auto, 50" Margin="5 0">
- <TextBlock Text="Label:" />
- <TextBlock Text="Address:" Grid.Column="1" />
- </Grid>
+ <Grid RowDefinitions="Auto,Auto,Auto">
<DockPanel LastChildFill="True" DockPanel.Dock="Top">
- <Button Content="Generate New" Command="{Binding GenerateCommand}" DockPanel.Dock="Right" VerticalAlignment="Top" />
- <TextBox Text="{Binding Label}" Watermark="Label" UseFloatingWatermark="True" DockPanel.Dock="Left" MinWidth="300" />
+ <Button Content="Generate New Receive Address" Command="{Binding GenerateCommand}" DockPanel.Dock="Right" VerticalAlignment="Top" />
+ <TextBox Text="{Binding Label, Mode=TwoWay}" Watermark="Label" UseFloatingWatermark="True" DockPanel.Dock="Left" MinWidth="300" />
<Grid></Grid>
</DockPanel>
- <ListBox Grid.Row="1" Items="{Binding Addresses}" SelectedItem="{Binding SelectedAddress, Mode=TwoWay}">
+ <Grid ColumnDefinitions="200, Auto, 50" Margin="5 10 5 0" Grid.Row="1">
+ <TextBlock Text="Label:" />
+ <TextBlock Text="Address:" Grid.Column="1" />
+ </Grid>
+ <ListBox Grid.Row="2" Items="{Binding Addresses}" SelectedItem="{Binding SelectedAddress, Mode=TwoWay}">
<ListBox.ItemTemplate>
<DataTemplate>
- <Grid ColumnDefinitions="200, 200, 50">
+ <Grid ColumnDefinitions="300, *, 100">
<Grid.Styles>
<Style Selector="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
</Grid.Styles>
<TextBlock Text="{Binding Label}" />
<TextBlock Text="{Binding Address}" Grid.Column="1" />
- <Button Content="More" Grid.Column="2" />
+ <Button Content="QR Code ..." Command="{Binding QRCodeCommand}" Grid.Column="2" Margin="0 2" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -32,7 +32,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
Addresses.Insert(0, new AddressViewModel(newKey));
- Label = null;
+ Label = string.Empty;
}, this.WhenAnyValue(x => x.Label, label => !string.IsNullOrWhiteSpace(label)));
}

MODIFY
WalletWasabi.Gui/Styles/Styles.xaml
WalletWasabi.Gui/Styles/Styles.xaml
<Style Selector="ListBox">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderDarkBrush}" />
</Style>
+
+ <Style Selector="TextBox">
+ <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderDarkBrush}" />
+ </Style>
</Styles>

Add polish of receive tab.