Skip to content

Commit

Permalink
Downgrade to 0.10.22
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Jan 28, 2024
1 parent 80a53b3 commit e9cd6e9
Show file tree
Hide file tree
Showing 51 changed files with 297 additions and 344 deletions.
3 changes: 1 addition & 2 deletions Svg.Skia.sln
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "props", "props", "{5BFEF4F8
build\Avalonia.props = build\Avalonia.props
build\Avalonia.ReactiveUI.props = build\Avalonia.ReactiveUI.props
build\Avalonia.Skia.props = build\Avalonia.Skia.props
build\Avalonia.Themes.Fluent.props = build\Avalonia.Themes.Fluent.props
build\Avalonia.Web.props = build\Avalonia.Web.props
build\Base.props = build\Base.props
build\HarfBuzzSharp.NativeAssets.Linux.props = build\HarfBuzzSharp.NativeAssets.Linux.props
build\Newtonsoft.Json.props = build\Newtonsoft.Json.props
Expand All @@ -60,6 +58,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "props", "props", "{5BFEF4F8
build\Svg.props = build\Svg.props
build\System.CommandLine.props = build\System.CommandLine.props
build\XUnit.props = build\XUnit.props
build\Avalonia.Themes.Fluent.props = build\Avalonia.Themes.Fluent.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{7863AE7D-FF68-45BF-BA68-6FA0E5604CB7}"
Expand Down
2 changes: 1 addition & 1 deletion build/Avalonia.Desktop.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="11.0.0" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.22" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Avalonia.Diagnostics.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.0" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.22" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Avalonia.ReactiveUI.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.22" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Avalonia.Skia.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Skia" Version="11.0.0" />
<PackageReference Include="Avalonia.Skia" Version="0.10.22" />
</ItemGroup>
</Project>
3 changes: 1 addition & 2 deletions build/Avalonia.Themes.Fluent.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.0" />
<PackageReference Include="XamlNameReferenceGenerator" Version="1.6.1" />
</ItemGroup>
</Project>
6 changes: 0 additions & 6 deletions build/Avalonia.Web.props

This file was deleted.

2 changes: 1 addition & 1 deletion build/Avalonia.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.0" />
<PackageReference Include="Avalonia" Version="0.10.22" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions build/Base.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>1.0.0.13</VersionPrefix>
<VersionPrefix>0.5.22.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<AvaloniaVersionPrefix>11.0.0.13</AvaloniaVersionPrefix>
<AvaloniaVersionPrefix>0.10.22.1</AvaloniaVersionPrefix>
<AvaloniaVersionSuffix>$(VersionSuffix)</AvaloniaVersionSuffix>
<Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company>
Expand Down
3 changes: 1 addition & 2 deletions samples/AvaloniaControlsSample/App.axaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaControlsSample.App"
Name="AvaloniaControlsSample"
RequestedThemeVariant="Light">
Name="AvaloniaControlsSample">
<Application.Styles>
<FluentTheme />
</Application.Styles>
Expand Down
3 changes: 1 addition & 2 deletions samples/AvaloniaSKPictureImageSample/App.axaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaSKPictureImageSample.App"
Name="AvaloniaSKPictureImageSample"
RequestedThemeVariant="Light">
Name="AvaloniaSKPictureImageSample">
<Application.Styles>
<FluentTheme />
</Application.Styles>
Expand Down
40 changes: 20 additions & 20 deletions samples/AvaloniaSKPictureImageSample/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<ComboBoxItem>Uniform</ComboBoxItem>
<ComboBoxItem>UniformToFill</ComboBoxItem>
</ComboBox>
<SKPictureControl Picture="{x:Static local:Tiger.Picture}"
Stretch="{Binding #SvgPictureStretch.SelectedItem.Content, FallbackValue=None}" />
<!-- <SKPictureControl Picture="{x:Static local:Tiger.Picture}" -->
<!-- Stretch="{Binding #SvgPictureStretch.SelectedItem.Content, FallbackValue=None}" /> -->
</DockPanel>
</TabItem>

Expand Down Expand Up @@ -54,39 +54,39 @@
<ComboBoxItem>Uniform</ComboBoxItem>
<ComboBoxItem>UniformToFill</ComboBoxItem>
</ComboBox>
<SKPictureControl Picture="{x:Static local:Logo.Picture}"
Stretch="{Binding #SvgAnimationPictureStretch.SelectedItem.Content, FallbackValue=None}"
Margin="100"
Classes="bounce rotate">
<SKPictureControl.RenderTransform>
<TransformGroup>
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</SKPictureControl.RenderTransform>
</SKPictureControl>
<!-- <SKPictureControl Picture="{x:Static local:Logo.Picture}" -->
<!-- Stretch="{Binding #SvgAnimationPictureStretch.SelectedItem.Content, FallbackValue=None}" -->
<!-- Margin="100" -->
<!-- Classes="bounce rotate"> -->
<!-- <SKPictureControl.RenderTransform> -->
<!-- <TransformGroup> -->
<!-- <RotateTransform /> -->
<!-- <TranslateTransform /> -->
<!-- </TransformGroup> -->
<!-- </SKPictureControl.RenderTransform> -->
<!-- </SKPictureControl> -->
</DockPanel>
</TabItem>

<TabItem Header="Image">
<DockPanel Background="Transparent" Margin="16" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<DockPanel.Resources>
<SKPictureImage x:Key="CameraImage" Source="{x:Static local:Camera.Picture}" />
</DockPanel.Resources>
<!-- <DockPanel.Resources> -->
<!-- <SKPictureImage x:Key="CameraImage" Source="{x:Static local:Camera.Picture}" /> -->
<!-- </DockPanel.Resources> -->
<ComboBox Name="SvgImageStretch" DockPanel.Dock="Top" SelectedIndex="2">
<ComboBoxItem>None</ComboBoxItem>
<ComboBoxItem>Fill</ComboBoxItem>
<ComboBoxItem>Uniform</ComboBoxItem>
<ComboBoxItem>UniformToFill</ComboBoxItem>
</ComboBox>
<Image Source="{StaticResource CameraImage}"
Stretch="{Binding #SvgImageStretch.SelectedItem.Content, FallbackValue=None}" />
<!-- <Image Source="{StaticResource CameraImage}" -->
<!-- Stretch="{Binding #SvgImageStretch.SelectedItem.Content, FallbackValue=None}" /> -->
</DockPanel>
</TabItem>

<TabItem Header="Pattern">
<SKPictureControl Picture="{x:Static local:Pattern.Picture}"
Stretch="Uniform" />
<!-- <SKPictureControl Picture="{x:Static local:Pattern.Picture}" -->
<!-- Stretch="Uniform" /> -->
</TabItem>

</TabControl>
Expand Down
3 changes: 1 addition & 2 deletions samples/AvaloniaSvgSample/App.axaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaSvgSample.App"
Name="AvaloniaSvgSample"
RequestedThemeVariant="Light">
Name="AvaloniaSvgSample">
<Application.Styles>
<FluentTheme />
</Application.Styles>
Expand Down
4 changes: 2 additions & 2 deletions samples/AvaloniaSvgSample/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ private void DragOver(object sender, DragEventArgs e)
{
e.DragEffects = e.DragEffects & (DragDropEffects.Copy | DragDropEffects.Link);

if (!e.Data.Contains(DataFormats.Files))
if (!e.Data.Contains(DataFormats.FileNames))
{
e.DragEffects = DragDropEffects.None;
}
}

private void Drop(object sender, DragEventArgs e)
{
if (e.Data.Contains(DataFormats.Files))
if (e.Data.Contains(DataFormats.FileNames))
{
var fileName = e.Data.GetFileNames()?.FirstOrDefault();
if (!string.IsNullOrWhiteSpace(fileName))
Expand Down
3 changes: 1 addition & 2 deletions samples/AvaloniaSvgSkiaSample/App.axaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaSvgSkiaSample.App"
Name="AvaloniaSvgSkiaSample"
RequestedThemeVariant="Light">
Name="AvaloniaSvgSkiaSample">
<Application.Styles>
<FluentTheme />
</Application.Styles>
Expand Down
2 changes: 1 addition & 1 deletion samples/AvaloniaSvgSkiaSample/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public override void OnFrameworkInitializationCompleted()

base.OnFrameworkInitializationCompleted();
}
}
}
4 changes: 2 additions & 2 deletions samples/AvaloniaSvgSkiaSample/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ private void DragOver(object sender, DragEventArgs e)
{
e.DragEffects = e.DragEffects & (DragDropEffects.Copy | DragDropEffects.Link);

if (!e.Data.Contains(DataFormats.Files))
if (!e.Data.Contains(DataFormats.FileNames))
{
e.DragEffects = DragDropEffects.None;
}
}

private void Drop(object sender, DragEventArgs e)
{
if (e.Data.Contains(DataFormats.Files))
if (e.Data.Contains(DataFormats.FileNames))
{
var fileName = e.Data.GetFileNames()?.FirstOrDefault();
if (!string.IsNullOrWhiteSpace(fileName))
Expand Down
13 changes: 11 additions & 2 deletions samples/AvaloniaSvgSkiaSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@ namespace AvaloniaSvgSkiaSample;
internal class Program
{
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
public static void Main(string[] args)
{
try
{
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
catch (Exception e)
{
Console.WriteLine(e);
}
}

public static AppBuilder BuildAvaloniaApp()
{
Expand Down
3 changes: 1 addition & 2 deletions samples/AvaloniaSvgSkiaStylingSample/App.axaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaSvgSkiaStylingSample.App"
Name="AvaloniaSvgSkiaStylingSample"
RequestedThemeVariant="Light">
Name="AvaloniaSvgSkiaStylingSample">
<Application.Styles>
<FluentTheme />
</Application.Styles>
Expand Down
4 changes: 2 additions & 2 deletions samples/AvaloniaSvgSkiaStylingSample/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public MainWindow()

private void ApplySvgStyleButtonClick(object sender, EventArgs e)
{
SvgControl.SetCurrentValue(Avalonia.Svg.Skia.Svg.CssProperty, ".Black { fill: #AAAAFF; }");
SvgControl.SetValue(Avalonia.Svg.Skia.Svg.CssProperty, ".Black { fill: #AAAAFF; }");
}

private void ApplySvgImageStyleButtonClick(object sender, EventArgs e)
{
SvgImageButton.SetCurrentValue(Avalonia.Svg.Skia.Svg.CssProperty, ".Black { fill: #AAAAFF; }");
SvgImageButton.SetValue(Avalonia.Svg.Skia.Svg.CssProperty, ".Black { fill: #AAAAFF; }");
}
}
3 changes: 1 addition & 2 deletions samples/TestApp/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:TestApp"
x:Class="TestApp.App"
Name="TestApp"
RequestedThemeVariant="Light">
Name="TestApp">
<Application.DataTemplates>
<local:ViewLocator />
</Application.DataTemplates>
Expand Down
Loading

0 comments on commit e9cd6e9

Please sign in to comment.