Skip to content

Commit

Permalink
Clean configure window
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding-Enthusiast committed May 5, 2024
1 parent 5bae762 commit 85dd0bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
1 change: 0 additions & 1 deletion Src/Denovo/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
<Setter Property="Margin" Value="3"/>
<Setter Property="MinHeight" Value="20"/>
<Setter Property="Padding" Value="5,3,5,5"/>
<Setter Property="UseFloatingWatermark" Value="True"/>
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>
<Style Selector="TextBox /template/ Border">
Expand Down
30 changes: 20 additions & 10 deletions Src/Denovo/Views/ConfigurationView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
<Design.DataContext>
<vm:ConfigurationViewModel/>
</Design.DataContext>

<UserControl.Styles>
<Style Selector="TextBlock">
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
</UserControl.Styles>


<Grid RowDefinitions="*,auto">
<TabControl>
<TabItem Header="Client Type">
<!--<TabItem Header="Client Type">
<Grid RowDefinitions="auto,auto,*">
<StackPanel Orientation="Horizontal" Margin="5" Spacing="5" Grid.Row="0">
<TextBlock Text="Network:"/>
Expand All @@ -34,20 +36,20 @@
</StackPanel>
<TextBlock Text="{Binding Desc}" TextWrapping="Wrap" Margin="5" Grid.Row="2"/>
</Grid>
</TabItem>
</TabItem>-->

<TabItem Header="Paths">
<Grid ColumnDefinitions="auto,*,auto" RowDefinitions="auto,auto">
<TextBlock Text="Blockchain path:" Margin="5" Grid.Column="0" Grid.Row="0"/>
<TextBlock Text="Blockchain path:"
Margin="5"
Grid.Column="0" Grid.Row="0"/>
<TextBox Text="{Binding Config.BlockchainPath}"
Margin="5"
Grid.Column="1"
Grid.Row="0"/>
Grid.Column="1" Grid.Row="0"/>
<Button Content="Browse..."
Command="{Binding SetBlockchainDir}"
Margin="5"
Grid.Column="2"
Grid.Row="0"/>
Grid.Column="2" Grid.Row="0"/>

<TextBlock Text="Wallet path:" Margin="5" Grid.Column="0" Grid.Row="1"/>
<TextBox Margin="5" Grid.Column="1" Grid.Row="1"/>
Expand All @@ -63,18 +65,26 @@
IsChecked="{Binding Config.Relay}"/>
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="Maximum number of connections:"/>
<TextBox Text="{Binding Config.MaxConnectionCount}" Width="50"/>
<NumericUpDown Value="{Binding Config.MaxConnectionCount}"
Increment="1"
Minimum="1"
NumberFormat=""
Width="70"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="User agent:"/>
<TextBox Text="{Binding Config.UserAgent}" Width="150"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="Initial peer discovery:"/>
<ComboBox ItemsSource="{Binding PeerDiscoveryOptions}" SelectedItem="{Binding Config.SelectedPeerDiscoveryOption}"
<ComboBox ItemsSource="{Binding PeerDiscoveryOptions}"
SelectedItem="{Binding Config.SelectedPeerDiscoveryOption}"
Width="80"/>
</StackPanel>
<TextBox Text="{Binding Config.PeerList}" AcceptsReturn="True" HorizontalAlignment="Left" Height="150" Width="400"/>
<TextBox Text="{Binding Config.PeerList}"
AcceptsReturn="True"
HorizontalAlignment="Left"
Height="150" Width="400"/>
</StackPanel>
</TabItem>
</TabControl>
Expand Down

0 comments on commit 85dd0bd

Please sign in to comment.