UI - Added routing (#802)

ColorGradient - Fixed GetColor returning the first stop if position was after the last stop
This commit is contained in:
RobertBeekman authored and GitHub committed 2023-07-02 22:15:38 +02:00
1 parent 79309dcee7
commit 962b13c6ed
77 files changed
+2034 -854

No files matched your search

+5 -5
View File
@@ -1,19 +1,19 @@
using Artemis.Core.Services;
using Artemis.UI.Screens.StartupWizard;
using Artemis.UI.Shared;
using Artemis.UI.Shared.Services;
using Avalonia.Threading;
using ReactiveUI;
namespace Artemis.UI.Screens.Home;
public class HomeViewModel : MainScreenViewModel
public class HomeViewModel : ViewModelBase, IMainScreenViewModel
{
public HomeViewModel(IScreen hostScreen, ISettingsService settingsService, IWindowService windowService) : base(hostScreen, "home")
public HomeViewModel(ISettingsService settingsService, IWindowService windowService)
{
DisplayName = "Home";
// Show the startup wizard if it hasn't been completed
if (!settingsService.GetSetting("UI.SetupWizardCompleted", false).Value)
Dispatcher.UIThread.InvokeAsync(async () => await windowService.ShowDialogAsync<StartupWizardViewModel, bool>());
}
public ViewModelBase? TitleBarViewModel => null;
}