diff --git a/Wabbajack.App.Wpf/Messages/NavigateToGlobal.cs b/Wabbajack.App.Wpf/Messages/NavigateToGlobal.cs index 5bc71ab4..ca1345f2 100644 --- a/Wabbajack.App.Wpf/Messages/NavigateToGlobal.cs +++ b/Wabbajack.App.Wpf/Messages/NavigateToGlobal.cs @@ -2,18 +2,19 @@ using ReactiveUI; namespace Wabbajack.Messages; +public enum ScreenType +{ + Home, + ModListGallery, + Installer, + Settings, + Compiler, + ModListContents, + WebBrowser +} + public class NavigateToGlobal { - public enum ScreenType - { - Home, - ModListGallery, - Installer, - Settings, - Compiler, - ModListContents, - WebBrowser - } public ScreenType Screen { get; } diff --git a/Wabbajack.App.Wpf/Models/NavigationItems/ANavigationItem.cs b/Wabbajack.App.Wpf/Models/NavigationItems/ANavigationItem.cs deleted file mode 100644 index 0fc291d8..00000000 --- a/Wabbajack.App.Wpf/Models/NavigationItems/ANavigationItem.cs +++ /dev/null @@ -1,18 +0,0 @@ -using ReactiveUI; -using System.Windows.Input; -using Wabbajack.Messages; - -namespace Wabbajack.Models; - -public abstract class ANavigationItem : INavigationItem -{ - public ICommand GoToCommand { get; } - public virtual NavigateToGlobal.ScreenType Screen { get; } - - public virtual bool MainMenuItem { get; } - - public ANavigationItem() - { - GoToCommand = ReactiveCommand.Create(() => NavigateToGlobal.Send(Screen)); - } -} diff --git a/Wabbajack.App.Wpf/Models/NavigationItems/INavigationItem.cs b/Wabbajack.App.Wpf/Models/NavigationItems/INavigationItem.cs deleted file mode 100644 index 993ae8f3..00000000 --- a/Wabbajack.App.Wpf/Models/NavigationItems/INavigationItem.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Windows.Input; -using Wabbajack.Messages; - -namespace Wabbajack.Models; - -public interface INavigationItem -{ - public ICommand GoToCommand { get; } - public NavigateToGlobal.ScreenType Screen { get; } - public bool MainMenuItem { get; } -} diff --git a/Wabbajack.App.Wpf/Models/NavigationItems/NavigationItems.cs b/Wabbajack.App.Wpf/Models/NavigationItems/NavigationItems.cs deleted file mode 100644 index 044608bd..00000000 --- a/Wabbajack.App.Wpf/Models/NavigationItems/NavigationItems.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Wabbajack.Messages; - -namespace Wabbajack.Models; - -public class HomeNI : ANavigationItem -{ - public override NavigateToGlobal.ScreenType Screen => NavigateToGlobal.ScreenType.Home; - public override bool MainMenuItem => true; -} -public class ModlistGalleryNI : ANavigationItem -{ - public override NavigateToGlobal.ScreenType Screen => NavigateToGlobal.ScreenType.ModListGallery; - public override bool MainMenuItem => true; -} -public class CompileNI : ANavigationItem -{ - public override NavigateToGlobal.ScreenType Screen => NavigateToGlobal.ScreenType.Compiler; - public override bool MainMenuItem => true; -} -public class SettingsNI : ANavigationItem -{ - public override NavigateToGlobal.ScreenType Screen => NavigateToGlobal.ScreenType.Settings; - public override bool MainMenuItem => true; -} diff --git a/Wabbajack.App.Wpf/Themes/Styles.xaml b/Wabbajack.App.Wpf/Themes/Styles.xaml index e22788ee..ba339239 100644 --- a/Wabbajack.App.Wpf/Themes/Styles.xaml +++ b/Wabbajack.App.Wpf/Themes/Styles.xaml @@ -26,6 +26,7 @@ #222531 + #2A2B41 #3c3652 #4e4571 #424242 @@ -118,6 +119,7 @@ + @@ -1196,8 +1198,8 @@ @@ -1260,7 +1262,29 @@ - + + + + +