Skip to content

Commit b0ebb97

Browse files
authored
Merge pull request #51 from boriel-basic/features/installer
v1.0.0 stable
2 parents a8ec61a + 8edbf26 commit b0ebb97

21 files changed

Lines changed: 1099 additions & 498 deletions

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,21 @@ Documentation will come in the near future, take a look at the book [Boriel Basi
1111

1212
Have fun!
1313

14-
## Credits
14+
## ZX Basic Studio Team
1515
- Development team:
1616
- El Dr. Gusman
1717
- Boriel
1818
- Duefectu
1919
- AdolFITO
2020
- HashIron
2121
- SirRickster
22+
- Testers:
23+
- AbenZaX
24+
- Pedro Tomás (Pere)
25+
- Jose Daniel Fernandez Santos (Fenix)
26+
- Yoruguaman
27+
28+
## Credits
2229
- Icons from [SVG REPO](https://www.svgrepo.com/):
2330
- <a href="https://github.com/blivesta/flexicon?ref=svgrepo.com" target="_blank">Blivesta</a> in MIT License
2431
- <a href="https://dazzleui.gumroad.com/l/dazzleiconsfree?ref=svgrepo.com" target="_blank">Dazzle Ui</a> in CC Attribution License
@@ -35,3 +42,8 @@ Have fun!
3542
- <a href="https://github.com/32pixelsCo/zest-icons/blob/master/packages/zest-free/LICENSE.md?ref=svgrepo.com" target="_blank">Zest</a> in MIT License
3643
- <a href="https://github.com/neuicons/neu?ref=svgrepo.com" target="_blank">Neuicons</a> in MIT License via
3744
- <a href="https://dazzleui.gumroad.com/l/dazzleiconsfree?ref=svgrepo.com" target="_blank">Dazzle Ui</a> in CC Attribution License
45+
- <a href="https://github.com/siemens/ix-icons?ref=svgrepo.com" target="_blank">Siemens</a> in MIT License
46+
- <a href="https://github.com/32pixelsCo/zest-icons/blob/master/packages/zest-free/LICENSE.md?ref=svgrepo.com" target="_blank">Zest</a> in MIT License
47+
- <a href="https://www.figma.com/community/file/1071678557813409125?ref=svgrepo.com" target="_blank">Ananthanath A X Kalaiism</a> in PD License
48+
49+

ZXBSInstaller.Log/ServiceLayer.cs

Lines changed: 605 additions & 422 deletions
Large diffs are not rendered by default.

ZXBSInstaller/App.axaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Avalonia;
2+
using Avalonia.Controls;
23
using Avalonia.Controls.ApplicationLifetimes;
34
using Avalonia.Markup.Xaml;
45

@@ -15,6 +16,7 @@ public override void OnFrameworkInitializationCompleted()
1516
{
1617
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
1718
{
19+
desktop.ShutdownMode = ShutdownMode.OnMainWindowClose;
1820
desktop.MainWindow = new MainWindow();
1921
}
2022

ZXBSInstaller/Assets/cancel.svg

Lines changed: 7 additions & 0 deletions
Loading

ZXBSInstaller/Assets/history.svg

Lines changed: 7 additions & 0 deletions
Loading

ZXBSInstaller/Assets/internet.svg

Lines changed: 7 additions & 0 deletions
Loading

ZXBSInstaller/Controls/MainControl.axaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<Label x:Name="lblBasePath">Installation path</Label>
3434
<TextBox x:Name="txtBasePath" Grid.Row="1" Margin="0,4,4,0"></TextBox>
3535
<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)"/>
3737
<CheckBox x:Name="chkSetZXBSOptions" Grid.Row="3" Margin="0,4,0,0" Content="Update ZX Basic Studio Options"/>
3838
</Grid>
3939
</Grid>
@@ -49,7 +49,7 @@
4949
<Button x:Name="btnRefresh" Width="200" Margin="0,4,0,0" Click="btnRefresh_Click">
5050
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
5151
<svg:Svg Path="/Assets/refresh.svg" Width="20" Margin="0,0,4,0"></svg:Svg>
52-
<TextBlock Text="Refrsh"/>
52+
<TextBlock Text="Refresh"/>
5353
</StackPanel>
5454
</Button>
5555
</StackPanel>
@@ -69,14 +69,36 @@
6969
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
7070
<TextBlock x:Name="txtStatus" FontSize="14" HorizontalAlignment="Center" Margin="8" Foreground="Yellow" Text="Working..."/>
7171
<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>
7278
</StackPanel>
7379
</Grid>
7480

7581
<!-- 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">
7783
<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>
80101
</Grid>
102+
81103
</Grid>
82104
</UserControl>

0 commit comments

Comments
 (0)