mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Added dividers to settings of group call with RTMP info.
This commit is contained in:
parent
e44961e571
commit
789c829bc2
3 changed files with 19 additions and 7 deletions
|
@ -1401,3 +1401,4 @@ groupCallRtmpShowButtonPosition: point(21px, -5px);
|
|||
groupCallRtmpKeyLabel: FlatLabel(boxLabel) {
|
||||
minWidth: 230px;
|
||||
}
|
||||
groupCallDividerBg: groupCallMembersBgRipple;
|
||||
|
|
|
@ -278,9 +278,7 @@ void StartRtmpProcess::FillRtmpRows(
|
|||
|
||||
auto urlLabelContent = state->url.value();
|
||||
addLabel(std::move(urlLabelContent));
|
||||
container->add(object_ptr<Ui::FixedHeightWidget>(
|
||||
container,
|
||||
st::groupCallRtmpUrlSkip));
|
||||
Settings::AddSkip(container, st::groupCallRtmpUrlSkip);
|
||||
addButton(false, tr::lng_group_call_rtmp_url_copy());
|
||||
//
|
||||
|
||||
|
@ -289,9 +287,7 @@ void StartRtmpProcess::FillRtmpRows(
|
|||
}
|
||||
|
||||
// Stream Key.
|
||||
container->add(object_ptr<Ui::FixedHeightWidget>(
|
||||
container,
|
||||
st::groupCallRtmpKeySubsectionTitleSkip));
|
||||
Settings::AddSkip(container, st::groupCallRtmpKeySubsectionTitleSkip);
|
||||
|
||||
Settings::AddSubsectionTitle(
|
||||
container,
|
||||
|
|
|
@ -248,6 +248,14 @@ void SettingsBox(
|
|||
const auto joinMuted = goodReal ? real->joinMuted() : false;
|
||||
const auto canChangeJoinMuted = (goodReal && real->canChangeJoinMuted());
|
||||
const auto addCheck = (peer->canManageGroupCall() && canChangeJoinMuted);
|
||||
|
||||
const auto addDivider = [&] {
|
||||
layout->add(object_ptr<Ui::BoxContentDivider>(
|
||||
layout,
|
||||
st::boxDividerHeight,
|
||||
st::groupCallDividerBg));
|
||||
};
|
||||
|
||||
if (addCheck) {
|
||||
AddSkip(layout);
|
||||
}
|
||||
|
@ -629,6 +637,10 @@ void SettingsBox(
|
|||
)->addClickHandler(std::move(shareLink));
|
||||
}
|
||||
if (rtmp) {
|
||||
AddSkip(layout);
|
||||
addDivider();
|
||||
AddSkip(layout);
|
||||
|
||||
struct State {
|
||||
base::unique_qptr<Ui::PopupMenu> menu;
|
||||
mtpRequestId requestId;
|
||||
|
@ -699,7 +711,7 @@ void SettingsBox(
|
|||
|
||||
|
||||
StartRtmpProcess::FillRtmpRows(
|
||||
box->verticalLayout(),
|
||||
layout,
|
||||
false,
|
||||
[=](object_ptr<Ui::BoxContent> &&object) {
|
||||
box->getDelegate()->show(std::move(object));
|
||||
|
@ -716,6 +728,9 @@ void SettingsBox(
|
|||
&st::groupCallAttentionBoxButton,
|
||||
&st::groupCallPopupMenu);
|
||||
state->data.fire(call->rtmpInfo());
|
||||
|
||||
addDivider();
|
||||
AddSkip(layout);
|
||||
}
|
||||
|
||||
if (peer->canManageGroupCall()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue