mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Add 'invited' icon in narrow voice chat members list.
This commit is contained in:
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 |
@@ -1215,6 +1215,7 @@ groupCallNarrowColoredCrossLine: CrossLineAnimation(groupCallNarrowInactiveCross
|
||||
groupCallNarrowRaisedHand: icon {{ "calls/video_mini_speak", groupCallMemberInactiveStatus }};
|
||||
groupCallNarrowCameraIcon: icon {{ "calls/video_mini_video", groupCallMemberNotJoinedStatus }};
|
||||
groupCallNarrowScreenIcon: icon {{ "calls/video_mini_screencast", groupCallMemberNotJoinedStatus }};
|
||||
groupCallNarrowInvitedIcon: icon {{ "calls/video_mini_invited", groupCallMemberNotJoinedStatus }};
|
||||
groupCallNarrowIconPosition: point(-4px, 2px);
|
||||
groupCallNarrowIconSkip: 15px;
|
||||
groupCallOutline: 2px;
|
||||
|
||||
@@ -1036,12 +1036,16 @@ void Members::Controller::rowPaintIcon(
|
||||
return;
|
||||
}
|
||||
const auto narrow = (state.style == MembersRowStyle::Narrow);
|
||||
if (!narrow && state.invited) {
|
||||
st::groupCallMemberInvited.paintInCenter(
|
||||
p,
|
||||
QRect(
|
||||
rect.topLeft() + st::groupCallMemberInvitedPosition,
|
||||
st::groupCallMemberInvited.size()));
|
||||
if (state.invited) {
|
||||
if (narrow) {
|
||||
st::groupCallNarrowInvitedIcon.paintInCenter(p, rect);
|
||||
} else {
|
||||
st::groupCallMemberInvited.paintInCenter(
|
||||
p,
|
||||
QRect(
|
||||
rect.topLeft() + st::groupCallMemberInvitedPosition,
|
||||
st::groupCallMemberInvited.size()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
const auto video = (state.style == MembersRowStyle::Video);
|
||||
|
||||
Reference in New Issue
Block a user