|
33 | 33 | <Label x:Name="lblBasePath">Installation path</Label> |
34 | 34 | <TextBox x:Name="txtBasePath" Grid.Row="1" Margin="0,4,4,0"></TextBox> |
35 | 35 | <Button x:Name="btnSelectPath" Grid.Column="2" Grid.Row="1" Click="btnSelectPath_Click">...</Button> |
36 | | - <CheckBox x:Name="chkOnlyStableVersions" Grid.Row="2" Margin="0,4,0,0" Content="Show only stable versions (no beta)"/> |
| 36 | + <CheckBox x:Name="chkOnlyStableVersions" Grid.Row="2" Margin="0,4,0,0" Content="Show only stable versions (no beta if possible)"/> |
37 | 37 | <CheckBox x:Name="chkSetZXBSOptions" Grid.Row="3" Margin="0,4,0,0" Content="Update ZX Basic Studio Options"/> |
38 | 38 | </Grid> |
39 | 39 | </Grid> |
|
49 | 49 | <Button x:Name="btnRefresh" Width="200" Margin="0,4,0,0" Click="btnRefresh_Click"> |
50 | 50 | <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
51 | 51 | <svg:Svg Path="/Assets/refresh.svg" Width="20" Margin="0,0,4,0"></svg:Svg> |
52 | | - <TextBlock Text="Refrsh"/> |
| 52 | + <TextBlock Text="Refresh"/> |
53 | 53 | </StackPanel> |
54 | 54 | </Button> |
55 | 55 | </StackPanel> |
|
69 | 69 | <StackPanel Orientation="Vertical" VerticalAlignment="Center"> |
70 | 70 | <TextBlock x:Name="txtStatus" FontSize="14" HorizontalAlignment="Center" Margin="8" Foreground="Yellow" Text="Working..."/> |
71 | 71 | <ProgressBar x:Name="progressBar" Height="24" Width="300" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="0" /> |
| 72 | + <Button x:Name="btnCancel" Width="150" Margin="16" Click="btnCancel_Click" HorizontalAlignment="Center"> |
| 73 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 74 | + <svg:Svg Path="/Assets/cancel.svg" Width="20" Margin="0,0,4,0"></svg:Svg> |
| 75 | + <TextBlock Text="Cancel"/> |
| 76 | + </StackPanel> |
| 77 | + </Button> |
72 | 78 | </StackPanel> |
73 | 79 | </Grid> |
74 | 80 |
|
75 | 81 | <!-- Modals --> |
76 | | - <Grid x:Name="pnlModalOverlay" Grid.ColumnSpan="3" Grid.RowSpan="5" Margin="0" IsVisible="False"> |
| 82 | + <Grid x:Name="pnlModal" Grid.ColumnSpan="3" Grid.RowSpan="5" Margin="0" IsVisible="False"> |
77 | 83 | <Grid Background="Black" Opacity="0.8"></Grid> |
78 | | - <Grid x:Name="pnlModalContainer"> |
79 | | - </Grid> |
| 84 | + <Border Background="Black" Width="600" Height="300" BorderBrush="White" BorderThickness="1" |
| 85 | + Padding="16" CornerRadius="8" HorizontalAlignment="Center" VerticalAlignment="Center"> |
| 86 | + <Grid Grid.RowDefinitions="Auto,*,Auto"> |
| 87 | + <Grid> |
| 88 | + <TextBlock x:Name="txtModalTitle" FontSize="20" Margin="0,0,0,8" Foreground="Yellow" Text="ZXBSInstaller"/> |
| 89 | + </Grid> |
| 90 | + <ScrollViewer Grid.Row="1" Margin="4"> |
| 91 | + <TextBlock x:Name="txtModalMessage" FontSize="16" Margin="0,0,0,16" TextWrapping="Wrap" Text=""/> |
| 92 | + </ScrollViewer> |
| 93 | + <Button x:Name="btnModalClose" Grid.Row="2" Width="100" HorizontalAlignment="Right" Click="btnModalClose_Click"> |
| 94 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 95 | + <svg:Svg Path="/Assets/cancel.svg" Width="20" Margin="0,0,4,0"></svg:Svg> |
| 96 | + <TextBlock Text="Cancel"/> |
| 97 | + </StackPanel> |
| 98 | + </Button> |
| 99 | + </Grid> |
| 100 | + </Border> |
80 | 101 | </Grid> |
| 102 | + |
81 | 103 | </Grid> |
82 | 104 | </UserControl> |
0 commit comments