Add 'invited' icon in narrow voice chat members list.

This commit is contained in:
John Preston 2021-07-27 13:09:28 +03:00
parent 000911ecfa
commit bc707320f8
5 changed files with 11 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

View file

@ -1215,6 +1215,7 @@ groupCallNarrowColoredCrossLine: CrossLineAnimation(groupCallNarrowInactiveCross
groupCallNarrowRaisedHand: icon {{ "calls/video_mini_speak", groupCallMemberInactiveStatus }}; groupCallNarrowRaisedHand: icon {{ "calls/video_mini_speak", groupCallMemberInactiveStatus }};
groupCallNarrowCameraIcon: icon {{ "calls/video_mini_video", groupCallMemberNotJoinedStatus }}; groupCallNarrowCameraIcon: icon {{ "calls/video_mini_video", groupCallMemberNotJoinedStatus }};
groupCallNarrowScreenIcon: icon {{ "calls/video_mini_screencast", groupCallMemberNotJoinedStatus }}; groupCallNarrowScreenIcon: icon {{ "calls/video_mini_screencast", groupCallMemberNotJoinedStatus }};
groupCallNarrowInvitedIcon: icon {{ "calls/video_mini_invited", groupCallMemberNotJoinedStatus }};
groupCallNarrowIconPosition: point(-4px, 2px); groupCallNarrowIconPosition: point(-4px, 2px);
groupCallNarrowIconSkip: 15px; groupCallNarrowIconSkip: 15px;
groupCallOutline: 2px; groupCallOutline: 2px;

View file

@ -1036,12 +1036,16 @@ void Members::Controller::rowPaintIcon(
return; return;
} }
const auto narrow = (state.style == MembersRowStyle::Narrow); const auto narrow = (state.style == MembersRowStyle::Narrow);
if (!narrow && state.invited) { if (state.invited) {
st::groupCallMemberInvited.paintInCenter( if (narrow) {
p, st::groupCallNarrowInvitedIcon.paintInCenter(p, rect);
QRect( } else {
rect.topLeft() + st::groupCallMemberInvitedPosition, st::groupCallMemberInvited.paintInCenter(
st::groupCallMemberInvited.size())); p,
QRect(
rect.topLeft() + st::groupCallMemberInvitedPosition,
st::groupCallMemberInvited.size()));
}
return; return;
} }
const auto video = (state.style == MembersRowStyle::Video); const auto video = (state.style == MembersRowStyle::Video);