Improvements to user profiles:
- Set a minimum width on the profile window (avatar size + margins) - Made avatar editing a separate button, so you can zoom in on your own avatars - Added hover text to avatar/displayname change buttons, which clarify where they will apply for global/room-specific profiles - Added display of room name for room-specific profiles, with hover text that explains what that means. - Added way to open global profile for users from their room-specific profiles (globe button next to room name)
This commit is contained in:
parent
40cfa7ae58
commit
e7564396fb
3 changed files with 60 additions and 9 deletions
|
|
@ -409,7 +409,8 @@ UserProfile::getGlobalProfileData()
|
|||
userid_.toStdString(),
|
||||
[this](const mtx::responses::Profile &res, mtx::http::RequestErr err) {
|
||||
if (err) {
|
||||
nhlog::net()->warn("failed to retrieve own profile info");
|
||||
nhlog::net()->warn("failed to retrieve profile info for {}",
|
||||
userid_.toStdString());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -418,3 +419,10 @@ UserProfile::getGlobalProfileData()
|
|||
emit avatarUrlChanged();
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
UserProfile::openGlobalProfile()
|
||||
{
|
||||
UserProfile *userProfile = new UserProfile("", userid_, manager, model);
|
||||
emit manager->openProfile(userProfile);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue