mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show controls in the middle of wide video.
This commit is contained in:
parent
20ff79abf4
commit
5f4903a279
2 changed files with 11 additions and 2 deletions
|
@ -1138,7 +1138,7 @@ groupCallNarrowUserpicTop: 13px;
|
||||||
groupCallNarrowNameTop: 65px;
|
groupCallNarrowNameTop: 65px;
|
||||||
groupCallNarrowIconTop: 62px;
|
groupCallNarrowIconTop: 62px;
|
||||||
groupCallNarrowIconLess: 5px;
|
groupCallNarrowIconLess: 5px;
|
||||||
groupCallWideModeWidthMin: 520px;
|
groupCallWideModeWidthMin: 550px;
|
||||||
groupCallWideModeSize: size(720px, 480px);
|
groupCallWideModeSize: size(720px, 480px);
|
||||||
groupCallNarrowAddMemberHeight: 32px;
|
groupCallNarrowAddMemberHeight: 32px;
|
||||||
groupCallNarrowOutline: 2px;
|
groupCallNarrowOutline: 2px;
|
||||||
|
|
|
@ -1575,7 +1575,16 @@ void Panel::updateControlsGeometry() {
|
||||||
+ (_screenShare ? _screenShare->width() + skip : 0)
|
+ (_screenShare ? _screenShare->width() + skip : 0)
|
||||||
+ (_settings ? _settings : _callShare)->width() + skip
|
+ (_settings ? _settings : _callShare)->width() + skip
|
||||||
+ _hangup->width() + skip;
|
+ _hangup->width() + skip;
|
||||||
auto left = (widget()->width() - fullWidth) / 2;
|
const auto membersSkip = st::groupCallNarrowSkip;
|
||||||
|
const auto membersWidth = st::groupCallNarrowSize.width()
|
||||||
|
+ 2 * membersSkip;
|
||||||
|
auto left = (_mode == PanelMode::Default)
|
||||||
|
? (widget()->width() - fullWidth) / 2
|
||||||
|
: (membersWidth
|
||||||
|
+ (widget()->width()
|
||||||
|
- membersWidth
|
||||||
|
- membersSkip
|
||||||
|
- fullWidth) / 2);
|
||||||
_mute->moveInner({ left + addSkip, buttonsTop + addSkip });
|
_mute->moveInner({ left + addSkip, buttonsTop + addSkip });
|
||||||
left += muteSize + skip;
|
left += muteSize + skip;
|
||||||
if (_video) {
|
if (_video) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue