mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Show video icon in call bubble in history.
This commit is contained in:
parent
97fe05c7ed
commit
79feb0c6d9
2 changed files with 16 additions and 6 deletions
|
@ -437,11 +437,15 @@ historyCallArrowOut: icon {{ "call_arrow_out", historyCallArrowOutFg }};
|
|||
historyCallArrowOutSelected: icon {{ "call_arrow_out", historyCallArrowOutFgSelected }};
|
||||
historyCallWidth: 240px;
|
||||
historyCallHeight: 56px;
|
||||
historyCallInIcon: icon {{ "menu_calls", msgFileInBg }};
|
||||
historyCallInIconSelected: icon {{ "menu_calls", msgFileInBgSelected }};
|
||||
historyCallOutIcon: icon {{ "menu_calls", msgFileOutBg }};
|
||||
historyCallOutIconSelected: icon {{ "menu_calls", msgFileOutBgSelected }};
|
||||
historyCallIconPosition: point(17px, 18px);
|
||||
historyCallInIcon: icon {{ "call_answer", msgFileInBg }};
|
||||
historyCallInIconSelected: icon {{ "call_answer", msgFileInBgSelected }};
|
||||
historyCallOutIcon: icon {{ "call_answer", msgFileOutBg }};
|
||||
historyCallOutIconSelected: icon {{ "call_answer", msgFileOutBgSelected }};
|
||||
historyCallCameraInIcon: icon {{ "call_camera_active", msgFileInBg }};
|
||||
historyCallCameraInIconSelected: icon {{ "call_camera_active", msgFileInBgSelected }};
|
||||
historyCallCameraOutIcon: icon {{ "call_camera_active", msgFileOutBg }};
|
||||
historyCallCameraOutIconSelected: icon {{ "call_camera_active", msgFileOutBgSelected }};
|
||||
historyCallIconPosition: point(12px, 10px);
|
||||
historyCallLeft: 16px;
|
||||
historyCallTop: 9px;
|
||||
historyCallStatusTop: 29px;
|
||||
|
|
|
@ -105,7 +105,13 @@ void Call::draw(Painter &p, const QRect &r, TextSelection selection, crl::time m
|
|||
p.setPen(statusFg);
|
||||
p.drawTextLeft(statusleft, statustop, paintw, _status);
|
||||
|
||||
auto &icon = outbg ? (selected ? st::historyCallOutIconSelected : st::historyCallOutIcon) : (selected ? st::historyCallInIconSelected : st::historyCallInIcon);
|
||||
const auto &icon = _video
|
||||
? (outbg
|
||||
? (selected ? st::historyCallCameraOutIconSelected : st::historyCallCameraOutIcon)
|
||||
: (selected ? st::historyCallCameraInIconSelected : st::historyCallCameraInIcon))
|
||||
: (outbg
|
||||
? (selected ? st::historyCallOutIconSelected : st::historyCallOutIcon)
|
||||
: (selected ? st::historyCallInIconSelected : st::historyCallInIcon));
|
||||
icon.paint(p, paintw - st::historyCallIconPosition.x() - icon.width(), st::historyCallIconPosition.y() - topMinus, paintw);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue