Improve settings view in GUI

This commit is contained in:
Tyrrrz 2021-12-14 01:54:17 +02:00
parent 4599e64f0a
commit 7a9e25c1f0

View file

@ -10,14 +10,25 @@
d:DataContext="{d:DesignInstance Type=dialogs:SettingsViewModel}"
Style="{DynamicResource MaterialDesignRoot}"
mc:Ignorable="d">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<StackPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock
Grid.Row="0"
Margin="16,16,16,8"
FontSize="19"
FontWeight="Light"
Text="Settings" />
<ScrollViewer
Grid.Row="1"
HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto">
<StackPanel>
<!-- Auto-updates -->
<DockPanel
Margin="16,8"
@ -131,9 +142,12 @@
Value="{Binding ParallelLimit}" />
</StackPanel>
</DockPanel>
</StackPanel>
</ScrollViewer>
<!-- Save button -->
<Button
Grid.Row="2"
Margin="16"
HorizontalAlignment="Stretch"
Command="{s:Action Close}"
@ -141,6 +155,5 @@
IsCancel="True"
IsDefault="True"
Style="{DynamicResource MaterialDesignOutlinedButton}" />
</StackPanel>
</ScrollViewer>
</Grid>
</UserControl>