-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1169 from Nexus-Mods/left_menu_fixes
Left menu fixes
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
24 changes: 23 additions & 1 deletion
24
src/NexusMods.App.UI/LeftMenu/Loadout/LoadoutLeftMenuDesignViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,34 @@ | ||
using System.Collections.ObjectModel; | ||
using NexusMods.App.UI.LeftMenu.Items; | ||
using NexusMods.App.UI.WorkspaceSystem; | ||
using NexusMods.Icons; | ||
using ReactiveUI; | ||
|
||
namespace NexusMods.App.UI.LeftMenu.Loadout; | ||
|
||
public class LoadoutLeftMenuDesignViewModel : AViewModel<ILoadoutLeftMenuViewModel>, ILoadoutLeftMenuViewModel | ||
{ | ||
public ReadOnlyObservableCollection<ILeftMenuItemViewModel> Items { get; } = new([]); | ||
public ReadOnlyObservableCollection<ILeftMenuItemViewModel> Items { get; } | ||
public WorkspaceId WorkspaceId { get; } = new(); | ||
public IApplyControlViewModel ApplyControlViewModel { get; } = new ApplyControlDesignViewModel(); | ||
|
||
public LoadoutLeftMenuDesignViewModel() | ||
{ | ||
Items = new ReadOnlyObservableCollection<ILeftMenuItemViewModel>([ | ||
new IconViewModel | ||
{ | ||
Name = "My Mods", | ||
Icon = IconValues.Collections, | ||
Activate = ReactiveCommand.Create(() => { }), | ||
}, | ||
|
||
new IconViewModel | ||
{ | ||
Name = "Diagnostics", | ||
Icon = IconValues.MonitorDiagnostics, | ||
Activate = ReactiveCommand.Create(() => { }), | ||
}, | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters