Skip to content

Commit

Permalink
0.4 Beta preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Duefectu committed Nov 5, 2024
1 parent 8227c9d commit 7782fb0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions ZXBStudio/DocumentEditors/ZXGraphics/SpriteImportDialog.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@

<Grid Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowDefinitions="Auto,*,Auto">
<Button Name="btnFile" Grid.Row="0" Classes="dialog" HorizontalAlignment="Left">Open file for import</Button>

<TextBlock HorizontalAlignment="Right" Classes="dialog">Move the image with the arrow keys (shift faster)</TextBlock>

<Grid Width="400" Height="400" Grid.Row="1">
<local:ImageViewImportControl Grid.Row="1" Name="cnvSource"/>
</Grid>

<Grid Grid.Row="2" ColumnDefinitions="48,*">
<TextBlock Name="txtZoom" Classes="dialog">Zoom 1x</TextBlock>
<Slider Name="sldZoom" Grid.Column="1" Width="100" Minimum="1" Maximum="8" Value="4" HorizontalAlignment="Left" Focusable="False" />
<Slider Name="sldZoom" Grid.Column="1" Width="100" Minimum="1" Maximum="8" Value="4" HorizontalAlignment="Left" Focusable="False" />
</Grid>
</Grid>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ public void Dispose()

private async void BtnFile_Tapped(object? sender, Avalonia.Input.TappedEventArgs e)
{
var fileTypes = new FilePickerFileType[5];
var fileTypes = new FilePickerFileType[4];
fileTypes[0] = new FilePickerFileType("All files") { Patterns = new[] { "*", "*.*" } };
fileTypes[1] = new FilePickerFileType("BMP files") { Patterns = new[] { "*.bmp" } };
fileTypes[2] = new FilePickerFileType("JPG files") { Patterns = new[] { "*.jpeg" } };
fileTypes[2] = new FilePickerFileType("JPG files") { Patterns = new[] { "*.jpg", "*.jpeg" } };
fileTypes[3] = new FilePickerFileType("PNG files") { Patterns = new[] { "*.png" } };
fileTypes[4] = new FilePickerFileType("SCR Spectrum screem files") { Patterns = new[] { "*.scr" } };
/*fileTypes[4] = new FilePickerFileType("SCR Spectrum screen files") { Patterns = new[] { "*.scr" } };*/

var select = await StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
{
Expand Down
4 changes: 2 additions & 2 deletions ZXBStudio/ZXBasicStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<Platforms>AnyCPU;x64</Platforms>
<ApplicationIcon>zxbs.ico</ApplicationIcon>
<Title>ZX Basic Studio</Title>
<AssemblyVersion>1.2.*</AssemblyVersion>
<AssemblyVersion>1.3.*</AssemblyVersion>
<Deterministic>False</Deterministic>
<Version>1.2.1.1</Version>
<Version>1.3.99.0</Version>
</PropertyGroup>
<ItemGroup>
<AvaloniaXaml Remove="LanguageDefinitions\**" />
Expand Down

0 comments on commit 7782fb0

Please sign in to comment.