Skip to content

Commit

Permalink
Merge pull request #1169 from Nexus-Mods/left_menu_fixes
Browse files Browse the repository at this point in the history
Left menu fixes
  • Loading branch information
Al12rs committed Apr 3, 2024
2 parents a2aa4eb + 40cbe06 commit 72375fb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
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(() => { }),
},
]
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Grid RowDefinitions="*,Auto"
Margin="16,16">

<ItemsControl Grid.Row="0" Margin="16,36" x:Name="MenuItemsControl">
<ItemsControl Grid.Row="0" x:Name="MenuItemsControl">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
Expand Down

0 comments on commit 72375fb

Please sign in to comment.