Improve User Flyout and Profile Overview#161
Open
GID0317 wants to merge 16 commits intoUnicordDev:redesignfrom
Open
Improve User Flyout and Profile Overview#161GID0317 wants to merge 16 commits intoUnicordDev:redesignfrom
GID0317 wants to merge 16 commits intoUnicordDev:redesignfrom
Conversation
Refactors ProfileOverlay to use a NavigationView for sectioned navigation (Overview, Activities, Mutual Friends, Mutual Servers). Adds new layouts for each section, improves responsive design, and implements navigation logic and item click handlers in the code-behind. Also adds a Copy User ID action and updates the UI for a more following windows 11 ui design
Revamps the UserFlyout with windows 11 design, improved role and mutual info display, and a new message composer with emoji picker. Adds support for viewing/copying user ID, mutual friends/servers overlays, and dynamic role expansion.
addHideCustomOverlayAsync to MainPage for awaiting overlay hide completion. Adds mutual friends placeholder properties to UserViewModel. Improve AdaptiveFlyout track host element, add Close(), and support placement (enables switching mutual-friend profile flyouts for future if mutual friend get populated).
add ReplaceOverlayWithAnimationAsync to OverlayService that allowing overlays to be replaced with an animated transition. Handles both windowed and in-app overlays.
Add Tapped event handlers for user avatars and username controls in Messages.xaml to display an adaptive user flyout.
Add new CornerRadius resources for profile overlay dialogs, profile cards, and role templates in Fluent, Performance, and SunValley themes. Updates localization files for profile-related strings in en-GB, en-US, fr, ja-JP, and ru-RU to support new UI elements.
Add 'Profile' menu item to direct message and Refactored to use click handlers for profile actions and unified the overlay invocation logic so the guild member list Profile menu item actually opening profile overlay
…doesn't work Updated OnNavigatedTo to handle navigation parameters as either a UserViewModel or a tuple of UserViewModel and section name.
Enhanced the roles expander to dynamically detect overflow based on actual layout added chevron rotation animation improved calculation of hidden roles.
Cleaned up obsolete and redundant comments related to role count estimation and expander state in the UserFlyout control.
- Modified the Load() method to check if Channel is null before trying to create a ChannelViewModel. Now it passes null to GetEmoji when there's no channel context. - Updated GetAllowedEmotes() to handle a null channel parameter. When the channel is null, it treats it the same as a private channel for users with Nitro (showing all available emoji from all servers), and returns an empty list for non-Nitro users without a guild context
…e 0 to make it correctly like discord
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR modernizes the Userflyout and Profile Overlay UI with Win11-style design and New Discord-inspired layout. Features:
Tested on: Windows 11 Version 25H2 (OS Build 26220.7535) x64
Preview: