-
Notifications
You must be signed in to change notification settings - Fork 53
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 #2133 from Nexus-Mods/fix/left-menu-badge-numbers
Fix for badge width with larger numbers
- Loading branch information
Showing
2 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/NexusMods.App.UI/LeftMenu/Items/IconDesignViewModel.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Reactive; | ||
using System.Reactive.Linq; | ||
using NexusMods.App.UI.Controls.Navigation; | ||
using NexusMods.Icons; | ||
using ReactiveUI; | ||
using ReactiveUI.Fody.Helpers; | ||
|
||
namespace NexusMods.App.UI.LeftMenu.Items; | ||
|
||
public class IconDesignViewModel : AViewModel<IIconViewModel>, IIconViewModel | ||
{ | ||
[Reactive] public string Name { get; set; } = ""; | ||
|
||
[Reactive] public IconValue Icon { get; set; } = new(); | ||
|
||
[Reactive] public string[] Badges { get; set; } = []; | ||
|
||
[Reactive] public ReactiveCommand<NavigationInformation, Unit> NavigateCommand { get; set; } = ReactiveCommand.Create<NavigationInformation>(_ => { }, Observable.Return(true)); | ||
|
||
[Reactive] public int RelativeOrder { get; set; } = 0; | ||
|
||
public IconDesignViewModel() : base() | ||
{ | ||
Icon = IconValues.ModLibrary; | ||
Name = "Sample Text"; | ||
Badges = new[] { "82" }; | ||
} | ||
} |
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