Skip to content

Commit

Permalink
avalonia update
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Sep 25, 2023
1 parent bb7cb93 commit 0cfcd75
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build/props/Avalonia.Browser.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.Browser" Version="11.0.2" />
<PackageReference Include="Avalonia.Browser" Version="11.0.4" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/props/Avalonia.Controls.ColorPicker.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.Controls.ColorPicker" Version="11.0.2" />
<PackageReference Include="Avalonia.Controls.ColorPicker" Version="11.0.4" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/props/Avalonia.Controls.DataGrid.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.Controls.DataGrid" Version="11.0.2" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.4" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/props/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.2" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.4" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/props/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.2" Condition="'$(Configuration)' == 'Debug'" />
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.4" Condition="'$(Configuration)' == 'Debug'" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/props/Avalonia.Fonts.Inter.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.Fonts.Inter" Version="11.0.2" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.4" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/props/Avalonia.Themes.Simple.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.Themes.Simple" Version="11.0.2" />
<PackageReference Include="Avalonia.Themes.Simple" Version="11.0.4" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/props/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.2" />
<PackageReference Include="Avalonia" Version="11.0.4" />
</ItemGroup>
</Project>
13 changes: 13 additions & 0 deletions src/OneWare.Core/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@ protected override AvaloniaObject CreateShell()
DataContext = Container.Resolve<AboutViewModel>()
}))
});
windowService.RegisterMenuItem("MainWindow_MainMenu", new MenuItemModel("Extras")
{
Header = "Extras",
Priority = 900
});
windowService.RegisterMenuItem("MainWindow_MainMenu/Extras", new MenuItemModel("Settings")
{
Header = $"Settings",
Command = new RelayCommand(() => windowService.Show(new ApplicationSettingsView()
{
DataContext = ContainerLocator.Container.Resolve<ApplicationSettingsViewModel>()
}))
});
windowService.RegisterMenuItem("MainWindow_MainMenu/Code", new MenuItemModel("Format")
{
Header = $"Format",
Expand Down
5 changes: 0 additions & 5 deletions src/OneWare.PackageManager/PackageManagerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ public void OnInitialized(IContainerProvider containerProvider)
{
var windowService = containerProvider.Resolve<IWindowService>();

windowService.RegisterMenuItem("MainWindow_MainMenu", new MenuItemModel("Extras")
{
Header = "Extras",
Priority = 900
});
windowService.RegisterMenuItem("MainWindow_MainMenu/Extras", new MenuItemModel("Extensions")
{
Header = "Extensions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public async Task LoadPackagesAsync()
RegisterPackageCategory(new PackageCategoryModel("Misc", Application.Current?.GetResourceObservable("Module")));

SelectedCategory = PackageCategories.First();


await LoadPackageRepositoryAsync(
"https://raw.githubusercontent.com/ProtopSolutions/OneWare.PublicPackages/main/oneware-packages.json", _cancellationTokenSource.Token);
Expand Down

0 comments on commit 0cfcd75

Please sign in to comment.