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:
Thulinma 2021-09-05 18:15:25 +02:00
parent 40cfa7ae58
commit e7564396fb
3 changed files with 60 additions and 9 deletions

View file

@ -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);
}