power_level badges for users in room settings (issue #453)
To sum up:
- Added a
badge
parameter toAvatar::circle
- Renamed
admin_badge
toavatar_badge
andAdminColor
toBadgeColor
, since they are also usable for room avatars - Badges are aligned top right like in Riot (it looked better than top left IMHO)
- Golden badge for PL 100
- Silver badge for PL 50 -> 99
Next step is to implement tooltips or other textual information to display the power level value.
Here are the solutions that comes to my mind:
- Text next to the matrix ID (probably better?)
- Text next to the user name
- Tooltip on the avatar (in addition to another solution?)
Do you have any preference?
Edited by Crom (Thibaut CHARLES)