mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added dividers to settings of group call with RTMP info.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user