-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: Mod & Pager Thumbnails to Library Page, Collections Page, Load…
…out Page (#2446) * WIP: Show Thumbnail in Collections Download View * Improve: Merge Image with Name Column, And Display in Main Library * First pass at styling for mod thumbnail images * Added: Icons to loadout items from Nexus * Added: Show icon on mod page in library. TODO: Hide it from child when using this view. * Added: Show icons in parents of Library and Loadout Items * Improve: Remove icons of children in loadout when trees are used. * Added: Hide Library Page Child Item Views in TreeView Now fully matches design (to my awareness) * Attempted to add ShowThumbnail to LoadoutItemModel Style selector for thumbnail column is more generalized Removed panel for missing thumbnail * Restored: Placeholder Icon for Page Thumbnail * Fixed: FakeParentLoadoutItemModel should load the thumbnail. * Restored: Placeholder to library item thumbnails. * Removed: Redundant 'update this' comment. * Improved: Better Clarify Thumbnail Loading Expected Behaviour * Cleanup: Removed unused style. * Changed: Use final design dimensions for encoded thumbnails. * Re-added placeholder image styles * Added: Suppress an unhandled exception that can surface from a missing thumbnail. * Disabled: Warnings Around Async Void Lambda * Removed: Caching from Image Pipeline * Added: A transparent fallback for images rather than a black box. * Added: erri-seal-of-approval libraryItemsDisposable creation. * Moved: Thumbnail Acquisition to FakeParentLoadoutItemModel Dispose: ChildrenObservable with FakeParentLoadoutItemModel * Added: static method handler for LoadoutItemModel * Fixed: Accidental regression in 16e9ccc due to unready childrenObservable * Refactored: We now load thumbnail of mod page directly into FakeParentLoadoutItem See: #2446 (review) * Fix: Tree Children now hide thumbnail as needed. --------- Co-authored-by: Simon Davies <[email protected]>
- Loading branch information
1 parent
0667217
commit c66e552
Showing
25 changed files
with
350 additions
and
95 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
15 changes: 0 additions & 15 deletions
15
src/NexusMods.App.UI/Pages/LibraryPage/ILibraryItemWithName.cs
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
src/NexusMods.App.UI/Pages/LibraryPage/ILibraryItemWithThumbnailAndName.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,18 @@ | ||
using Avalonia.Media.Imaging; | ||
using NexusMods.App.UI.Controls; | ||
using R3; | ||
|
||
namespace NexusMods.App.UI.Pages.LibraryPage; | ||
|
||
public interface ILibraryItemWithThumbnailAndName : ILibraryItemModel, IComparable<ILibraryItemWithThumbnailAndName>, IColumnDefinition<ILibraryItemModel, ILibraryItemWithThumbnailAndName> | ||
{ | ||
BindableReactiveProperty<Bitmap> Thumbnail { get; } | ||
BindableReactiveProperty<string> Name { get; } | ||
BindableReactiveProperty<bool> ShowThumbnail { get; } | ||
|
||
int IComparable<ILibraryItemWithThumbnailAndName>.CompareTo(ILibraryItemWithThumbnailAndName? other) => string.CompareOrdinal(Name.Value, other?.Name.Value); | ||
|
||
public const string ColumnTemplateResourceKey = "LibraryItemNameColumn"; | ||
static string IColumnDefinition<ILibraryItemModel, ILibraryItemWithThumbnailAndName>.GetColumnHeader() => "Name"; | ||
static string IColumnDefinition<ILibraryItemModel, ILibraryItemWithThumbnailAndName>.GetColumnTemplateResourceKey() => ColumnTemplateResourceKey; | ||
} |
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
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
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
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
Oops, something went wrong.