This commit is contained in:
Wiesław Šoltés 2021-01-22 15:14:20 +01:00
Родитель e5768da83e
Коммит f0c139436c
6 изменённых файлов: 11 добавлений и 8 удалений

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup> <ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-rc2" /> <PackageReference Include="Avalonia.Desktop" Version="0.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup> <ItemGroup>
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-rc2" /> <PackageReference Include="Avalonia.Diagnostics" Version="0.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup> <ItemGroup>
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.0-rc2" /> <PackageReference Include="Avalonia.ReactiveUI" Version="0.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup> <ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.0-rc2" /> <PackageReference Include="Avalonia" Version="0.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Просмотреть файл

@ -1,7 +1,7 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<VersionPrefix>0.10.0</VersionPrefix> <VersionPrefix>0.10.0</VersionPrefix>
<VersionSuffix>rc2</VersionSuffix> <VersionSuffix></VersionSuffix>
<Authors>Wiesław Šoltés</Authors> <Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company> <Company>Wiesław Šoltés</Company>
<Copyright>Copyright © Wiesław Šoltés 2021</Copyright> <Copyright>Copyright © Wiesław Šoltés 2021</Copyright>

Просмотреть файл

@ -64,9 +64,12 @@ namespace ThemeEditor
{ {
var previewView = this.Find<ThemePreviewView>("previewView"); var previewView = this.Find<ThemePreviewView>("previewView");
var exportText = this.Find<TextBox>("exportText"); var exportText = this.Find<TextBox>("exportText");
var defaultThem = editor.GetTheme(_lightTheme); if (_lightTheme is not null)
defaultThem.Name = "BaseLight"; {
editor.DefaultTheme = defaultThem; var defaultThem = editor.GetTheme(_lightTheme);
defaultThem.Name = "BaseLight";
editor.DefaultTheme = defaultThem;
}
editor.Attach(previewView.Resources, (x) => exportText.Text = x.ToXaml()); editor.Attach(previewView.Resources, (x) => exportText.Text = x.ToXaml());
} }
} }